diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_debug_func_call.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_debug_func_call.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_debug_func_call.txt b/js/scripting-lang/scratch_tests/test_debug_func_call.txt new file mode 100644 index 0000000..5b3ae21 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_debug_func_call.txt @@ -0,0 +1,13 @@ +/* Debug test for function calls */ +is_even : n -> n % 2 = 0; + +test_debug : n -> + when n is + 0 then "zero" + 1 then "one" + _ then "other"; + +result1 : test_debug 0; +result2 : is_even 4; +..out result1; +..out result2; \ No newline at end of file |