about summary refs log tree commit diff stats
path: root/js/scripting-lang/tests/08_first_class_functions.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/tests/08_first_class_functions.txt')
-rw-r--r--js/scripting-lang/tests/08_first_class_functions.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/scripting-lang/tests/08_first_class_functions.txt b/js/scripting-lang/tests/08_first_class_functions.txt
index f228ccd..75fda40 100644
--- a/js/scripting-lang/tests/08_first_class_functions.txt
+++ b/js/scripting-lang/tests/08_first_class_functions.txt
@@ -31,10 +31,10 @@ applied : apply @double 7;
 
 /* Function references in case expressions */
 getFunction : type -> 
-  case type of
-    "double" : @double
-    "square" : @square
-    _        : @add1;
+  when type is
+    "double" then @double
+    "square" then @square
+    _        then @add1;
 
 func1 : getFunction "double";
 func2 : getFunction "square";