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