1
0
forked from Mirror/wren
Files
wren/test/api/value.wren
Bob Nystrom 7a79b8fac6 Simplify the API tests.
Use fewer test suites with more tests in each one since there's so much
boilerplate for defining an API test.
2015-08-13 09:09:27 -07:00

15 lines
293 B
Plaintext

class Api {
foreign static value=(value)
foreign static value
}
Api.value = ["list", "of", "strings"]
// Do some stuff to trigger a GC (at least when GC stress testing enabled).
var s = "string"
for (i in 1...10) {
s = s + " more"
}
IO.print(Api.value) // expect: [list, of, strings]