mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
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.
27 lines
280 B
Plaintext
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;
|
|
|; |