Files
wren/test/class/equality.wren
T

14 lines
369 B
Plaintext
Raw Normal View History

2014-01-05 12:27:12 -08:00
IO.print(Num == Num) // expect: true
IO.print(Num == Bool) // expect: false
// Not equal to other types.
2014-01-05 12:27:12 -08:00
IO.print(Num == 123) // expect: false
IO.print(Num == true) // expect: false
2014-01-05 12:27:12 -08:00
IO.print(Num != Num) // expect: false
IO.print(Num != Bool) // expect: true
// Not equal to other types.
2014-01-05 12:27:12 -08:00
IO.print(Num != 123) // expect: true
IO.print(Num != true) // expect: true