2014-01-05 20:27:12 +00:00
|
|
|
IO.print(1 < 2) // expect: true
|
|
|
|
|
IO.print(2 < 2) // expect: false
|
|
|
|
|
IO.print(2 < 1) // expect: false
|
2013-11-04 05:38:58 +00:00
|
|
|
|
2014-01-05 20:27:12 +00:00
|
|
|
IO.print(1 <= 2) // expect: true
|
|
|
|
|
IO.print(2 <= 2) // expect: true
|
|
|
|
|
IO.print(2 <= 1) // expect: false
|
2013-11-04 05:38:58 +00:00
|
|
|
|
2014-01-05 20:27:12 +00:00
|
|
|
IO.print(1 > 2) // expect: false
|
|
|
|
|
IO.print(2 > 2) // expect: false
|
|
|
|
|
IO.print(2 > 1) // expect: true
|
2013-11-04 05:38:58 +00:00
|
|
|
|
2014-01-05 20:27:12 +00:00
|
|
|
IO.print(1 >= 2) // expect: false
|
|
|
|
|
IO.print(2 >= 2) // expect: true
|
|
|
|
|
IO.print(2 >= 1) // expect: true
|
2013-11-04 05:38:58 +00:00
|
|
|
|
2013-12-20 20:42:11 +00:00
|
|
|
// Zero and negative zero compare the same.
|
2014-01-05 20:27:12 +00: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 20:42:11 +00:00
|
|
|
|
2013-12-14 23:28:18 +00:00
|
|
|
// TODO: Wrong type for RHS.
|