about summary refs log tree commit diff stats
path: root/js/baba-yaga/scratch/baba/simple_nested_when.baba
diff options
context:
space:
mode:
Diffstat (limited to 'js/baba-yaga/scratch/baba/simple_nested_when.baba')
-rw-r--r--js/baba-yaga/scratch/baba/simple_nested_when.baba8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/baba-yaga/scratch/baba/simple_nested_when.baba b/js/baba-yaga/scratch/baba/simple_nested_when.baba
new file mode 100644
index 0000000..7f7a258
--- /dev/null
+++ b/js/baba-yaga/scratch/baba/simple_nested_when.baba
@@ -0,0 +1,8 @@
+// Simple nested when test
+test : x ->
+  when x is
+    0 then when true is
+             true then "nested true"
+             false then "nested false"
+    1 then "simple case"
+    _ then "default";