1
0
forked from Mirror/wren
Files
wren/test/language/while/truth.wren
Bob Nystrom 64eccdd9be Reorganize tests and benchmark scripts.
Mainly to get rid of one top level directory. But this will
also be useful when there are tests of the embedding API.
2015-03-14 12:45:56 -07:00

27 lines
319 B
Plaintext

// False and null are false.
while (false) {
IO.print("bad")
break
}
while (null) {
IO.print("bad")
break
}
// Everything else is true.
while (true) {
IO.print("true") // expect: true
break
}
while (0) {
IO.print(0) // expect: 0
break
}
while ("") {
IO.print("string") // expect: string
break
}