diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_enhanced_debug.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_enhanced_debug.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_enhanced_debug.txt b/js/scripting-lang/scratch_tests/test_enhanced_debug.txt new file mode 100644 index 0000000..5462858 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_enhanced_debug.txt @@ -0,0 +1,13 @@ +/* Simple test to debug enhanced case statements */ + +/* Test 1: Basic FizzBuzz */ +fizzbuzz : n -> + when (n % 3) (n % 5) is + 0 0 then "FizzBuzz" + 0 _ then "Fizz" + _ 0 then "Buzz" + _ _ then n; + +/* Test basic FizzBuzz */ +result1 : fizzbuzz 15; +..out result1; \ No newline at end of file |