Files
wren/test/class/equality.wren
Bob Nystrom b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00

14 lines
369 B
Plaintext

IO.print(Num == Num) // expect: true
IO.print(Num == Bool) // expect: false
// Not equal to other types.
IO.print(Num == 123) // expect: false
IO.print(Num == true) // expect: false
IO.print(Num != Num) // expect: false
IO.print(Num != Bool) // expect: true
// Not equal to other types.
IO.print(Num != 123) // expect: true
IO.print(Num != true) // expect: true