diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_when_debug.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_when_debug.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_when_debug.txt b/js/scripting-lang/scratch_tests/test_when_debug.txt new file mode 100644 index 0000000..3a5f9cf --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_when_debug.txt @@ -0,0 +1,11 @@ +/* Simple when expression test */ + +grade : score -> + when score is + 90 then "A" + 80 then "B" + 70 then "C" + _ then "F"; + +result : grade 95; +..out result; \ No newline at end of file |