aboutsummaryrefslogtreecommitdiff
path: root/test/when.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/when.tm')
-rw-r--r--test/when.tm9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/when.tm b/test/when.tm
index 28573d88..d18f5276 100644
--- a/test/when.tm
+++ b/test/when.tm
@@ -3,12 +3,9 @@
func main()
answers := [
(
- when x is "A","B"
- "A or B"
- is "C"
- "C"
- else
- "Other"
+ when x is "A","B" then "A or B"
+ is "C" then "C"
+ else "Other"
) for x in ["A", "B", "C", "D"]
]
>> answers