From f957f0ba7bce1c1fb18df37cc11bb3906b96735f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 11 Jan 2021 16:05:01 +0100 Subject: test ifs --- tests/if.tdy | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/if.tdy (limited to 'tests') diff --git a/tests/if.tdy b/tests/if.tdy new file mode 100644 index 0000000..196e221 --- /dev/null +++ b/tests/if.tdy @@ -0,0 +1,29 @@ +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 -- cgit v1.2.1