From e4c01e1c86bd9035750d91762f7a0868f0f56d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 16 Jan 2021 01:46:12 +0100 Subject: move some tests to strings and test_multiple! --- tests/if.tdy | 29 ----------------------------- tests/order-of-operations.tdy | 10 ---------- tests/variables.tdy | 24 ------------------------ 3 files changed, 63 deletions(-) delete mode 100644 tests/if.tdy delete mode 100644 tests/order-of-operations.tdy delete mode 100644 tests/variables.tdy (limited to 'tests') diff --git a/tests/if.tdy b/tests/if.tdy deleted file mode 100644 index be3e3ca..0000000 --- a/tests/if.tdy +++ /dev/null @@ -1,29 +0,0 @@ -a : int = 0 -res : int = 0 - -if 1 == 2 { - -} - -a = 1 -if a == 0 { - -} - -a = 1 -res = 0 -if a == 1 { - res = 1 -} -res <=> 1 - -a = 1 -res = 0 -if a == 0 { - -} else if a == 1 { - res = 1 -} else { - -} -res <=> 1 diff --git a/tests/order-of-operations.tdy b/tests/order-of-operations.tdy deleted file mode 100644 index 4f635b0..0000000 --- a/tests/order-of-operations.tdy +++ /dev/null @@ -1,10 +0,0 @@ -1 + 1 * 2 <=> 3 -1 * 2 + 3 <=> 5 -5 <=> 1 * 2 + 3 -(1 + 2) * 3 <=> 9 -//- --1 <=> 0 - 1 --1 + 2 <=> 1 --(1 + 2) <=> -3 -1 + -1 <=> 0 -2 * -1 <=> -2 diff --git a/tests/variables.tdy b/tests/variables.tdy deleted file mode 100644 index 74d8cdd..0000000 --- a/tests/variables.tdy +++ /dev/null @@ -1,24 +0,0 @@ -// a variable -a : int = 1 -a <=> 1 - -// another variable -b : int = 2 -b <=> 2 - -// assignment -a = b -a <=> 2 - -// ordering -c : int = 3 -d : int = 4 -c <=> 3 -d <=> 4 - -// No types - -e := 1 -f := e + 1 -e <=> 1 -f <=> 2 -- cgit v1.2.1