diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_func_call_only.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_func_call_only.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_func_call_only.txt b/js/scripting-lang/scratch_tests/test_func_call_only.txt new file mode 100644 index 0000000..b5bdf75 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_func_call_only.txt @@ -0,0 +1,10 @@ +/* Function call test */ +is_even : n -> n % 2 = 0; + +test_func_call : n -> + when is_even n is + true then "even number" + false then "odd number"; + +result : test_func_call 4; +..out result; \ No newline at end of file |