diff options
Diffstat (limited to 'js/scripting-lang/tests/07_case_expressions.txt')
-rw-r--r-- | js/scripting-lang/tests/07_case_expressions.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/scripting-lang/tests/07_case_expressions.txt b/js/scripting-lang/tests/07_case_expressions.txt index 35f0aa2..ccc447c 100644 --- a/js/scripting-lang/tests/07_case_expressions.txt +++ b/js/scripting-lang/tests/07_case_expressions.txt @@ -5,13 +5,13 @@ factorial : n -> when n is 0 then 1 - _ then n * (factorial (n - 1)); + _ then n * (@factorial (n - 1)); grade : score -> when score is - 90 then "A" - 80 then "B" - 70 then "C" + score >= 90 then "A" + score >= 80 then "B" + score >= 70 then "C" _ then "F"; /* Test case expressions */ |