about summary refs log tree commit diff stats
path: root/js/baba-yaga/scratch/baba/test_logical_and.baba
diff options
context:
space:
mode:
Diffstat (limited to 'js/baba-yaga/scratch/baba/test_logical_and.baba')
-rw-r--r--js/baba-yaga/scratch/baba/test_logical_and.baba7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/baba-yaga/scratch/baba/test_logical_and.baba b/js/baba-yaga/scratch/baba/test_logical_and.baba
new file mode 100644
index 0000000..0b2b565
--- /dev/null
+++ b/js/baba-yaga/scratch/baba/test_logical_and.baba
@@ -0,0 +1,7 @@
+// Test logical and in when discriminant
+test : x y ->
+  when x and y is
+    true then "both true"
+    false then "at least one false";
+
+result : test true false;