diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-10 14:06:57 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-10 14:06:57 +0100 |
| commit | d42c86f010abf52e3853760bbbadb888517d7afe (patch) | |
| tree | 941c5c92e3e1425988d7c09e47c32317ed7e2530 /tests | |
| parent | 78749296776b2d9b7cb1d03b93c97ceb32c8c0b3 (diff) | |
| download | sylt-d42c86f010abf52e3853760bbbadb888517d7afe.tar.gz | |
add test ooo
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/order-of-operations.tdy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/order-of-operations.tdy b/tests/order-of-operations.tdy new file mode 100644 index 0000000..f739ccb --- /dev/null +++ b/tests/order-of-operations.tdy @@ -0,0 +1,9 @@ +1 + 1 * 2 <=> 3 +1 * 2 + 3 <=> 5 +5 <=> 1 * 2 + 3 +(1 + 2) * 3 <=> 9 +//- +-1 + 2 <=> 1 +-(1 + 2) <=> -3 +1 + -1 <=> 0 +2 * -1 <=> -2 |
