From 90cd66de53b773d35b2ba5c403b46bfc52b84103 Mon Sep 17 00:00:00 2001 From: mtardy Date: Wed, 2 Sep 2020 11:32:06 +0200 Subject: [PATCH] Add test-switch.txt --- test-switch.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test-switch.txt diff --git a/test-switch.txt b/test-switch.txt new file mode 100644 index 0000000..3fd388c --- /dev/null +++ b/test-switch.txt @@ -0,0 +1,10 @@ +for(i=0; i <= 5; ++i) { + switch (i) { + case 0: println("zero"); break; + case 1: println("one"); break; + case 1+1: println("two"); break; + case 1+1+1: println("three"); break; + case 2*2: println("four"); break; + case 20/4: println("five"); + } +}