Files
wren/test/language/logical_operator/or_truth.wren
T
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

9 lines
240 B
Plaintext

// False and null are false.
IO.print(false || "ok") // expect: ok
IO.print(null || "ok") // expect: ok
// Everything else is true.
IO.print(true || "ok") // expect: true
IO.print(0 || "ok") // expect: 0
IO.print("s" || "ok") // expect: s