2014-01-05 12:27:12 -08:00
|
|
|
IO.print(1 < 2) // expect: true
|
|
|
|
|
IO.print(2 < 2) // expect: false
|
|
|
|
|
IO.print(2 < 1) // expect: false
|
2013-11-03 21:38:58 -08:00
|
|
|
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(1 <= 2) // expect: true
|
|
|
|
|
IO.print(2 <= 2) // expect: true
|
|
|
|
|
IO.print(2 <= 1) // expect: false
|
2013-11-03 21:38:58 -08:00
|
|
|
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(1 > 2) // expect: false
|
|
|
|
|
IO.print(2 > 2) // expect: false
|
|
|
|
|
IO.print(2 > 1) // expect: true
|
2013-11-03 21:38:58 -08:00
|
|
|
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(1 >= 2) // expect: false
|
|
|
|
|
IO.print(2 >= 2) // expect: true
|
|
|
|
|
IO.print(2 >= 1) // expect: true
|
2013-11-03 21:38:58 -08:00
|
|
|
|
2013-12-20 12:42:11 -08:00
|
|
|
// Zero and negative zero compare the same.
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(0 < -0) // expect: false
|
|
|
|
|
IO.print(-0 < 0) // expect: false
|
|
|
|
|
IO.print(0 > -0) // expect: false
|
|
|
|
|
IO.print(-0 > 0) // expect: false
|
|
|
|
|
IO.print(0 <= -0) // expect: true
|
|
|
|
|
IO.print(-0 <= 0) // expect: true
|
|
|
|
|
IO.print(0 >= -0) // expect: true
|
|
|
|
|
IO.print(-0 >= 0) // expect: true
|
2013-12-20 12:42:11 -08:00
|
|
|
|
2013-12-14 15:28:18 -08:00
|
|
|
// TODO: Wrong type for RHS.
|