summary refs log tree commit diff stats
path: root/tests/accept/run/tcasestm.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/accept/run/tcasestm.nim')
-rwxr-xr-xtests/accept/run/tcasestm.nim32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/accept/run/tcasestm.nim b/tests/accept/run/tcasestm.nim
deleted file mode 100755
index 277b0bab1..000000000
--- a/tests/accept/run/tcasestm.nim
+++ /dev/null
@@ -1,32 +0,0 @@
-# Test the case statement
-
-type
-  tenum = enum eA, eB, eC
-
-var
-  x: string = "yyy"
-  y: Tenum = eA
-  i: int
-
-case y
-of eA: write(stdout, "a")
-of eB, eC: write(stdout, "b or c")
-
-case x
-of "Andreas", "Rumpf": write(stdout, "Hallo Meister!")
-of "aa", "bb": write(stdout, "Du bist nicht mein Meister")
-of "cc", "hash", "when": nil
-of "will", "it", "finally", "be", "generated": nil
-
-case i
-of 1..5, 8, 9: nil
-of 6, 7: nil
-elif x == "Ha": 
-  nil
-elif x == "yyy":
-  write(stdout, x)
-else:
-  nil
-
-#OUT ayyy
-