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