diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_pattern_debug.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_pattern_debug.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_pattern_debug.txt b/js/scripting-lang/scratch_tests/test_pattern_debug.txt new file mode 100644 index 0000000..ef8b676 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_pattern_debug.txt @@ -0,0 +1,14 @@ +/* Test pattern matching with boolean values */ + +/* Test direct boolean matching */ +test_bool : value -> + when value is + true then "true matched" + false then "false matched" + _ then "wildcard matched"; + +result1 : test_bool true; +result2 : test_bool false; + +..out result1; +..out result2; \ No newline at end of file |