diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_func_no_match.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_func_no_match.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_func_no_match.txt b/js/scripting-lang/scratch_tests/test_func_no_match.txt new file mode 100644 index 0000000..ff55185 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_func_no_match.txt @@ -0,0 +1,11 @@ +/* Test function call that should not match */ +is_even : n -> n % 2 = 0; + +test_no_match : n -> + when n is + is_even n then "function call result" + 5 then "five" + _ then "other"; + +result : test_no_match 5; +..out result; \ No newline at end of file |