From d42c86f010abf52e3853760bbbadb888517d7afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 10 Jan 2021 14:06:57 +0100 Subject: add test ooo --- tests/order-of-operations.tdy | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/order-of-operations.tdy (limited to 'tests/order-of-operations.tdy') 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 -- cgit v1.2.1