ucg/integration_tests/operator_precedence_test.ucg
Jeremy Wall d2f0ea9f24 FEATURE: Better error reporting.
Slight change to how assert works to support this. We no longer automatically add
a semicolon to the expressions we require the user to right them. This updates the
docs to illustrate that and reformats our integration test suite for this and
readability.
2018-11-06 19:40:56 -06:00

27 lines
280 B
Plaintext

assert |
2 * 2 + 1 == 5;
|;
assert |
2 + 2 * 3 == 8;
|;
assert |
2 * (2 + 1) == 6;
|;
assert |
2 * 2 + 1 > 4;
|;
assert |
2 * 2 + 1 < 6;
|;
assert |
2 * 2 + 1 >= 5;
|;
assert |
2 * 2 + 1 <= 5;
|;
assert |
2 / 2 == 1;
|;
assert |
2 - 1 == 1;
|;