Priority.k 529 B

123456789101112131415161718
  1. invoke {
  2. assert -abs(-5) + 10 == 5
  3. assert 2 + 5*3 == 17
  4. assert 1 - 6/2 == -2
  5. assert 2^10 / 2 == 512
  6. assert -2^3 + 8 == 0
  7. assert (5 % 3)^10 == 1024
  8. assert (1 + 1 < 3) == true
  9. assert (false && true == false) == false
  10. assert 1 + 1 == 2 && 2 + 2 == 4
  11. assert (false && true || !false) == true
  12. assert (abs << -5 + 3) == 2
  13. assert (ceil << 3 ^ 0.5) == 2
  14. assert (.{ .x } << 1 + 1 == 2 || false) == true
  15. assert (1 + 1 or 3) == 2
  16. assert (1 - 11*2 + 3*5 % 7 - 8/2 * 6^2) == -164
  17. }