diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_alternatives_only.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_alternatives_only.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_alternatives_only.txt b/js/scripting-lang/scratch_tests/test_alternatives_only.txt new file mode 100644 index 0000000..17406ad --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_alternatives_only.txt @@ -0,0 +1,14 @@ +/* Test alternative syntaxes only */ + +/* Alternative 1: Parenthesized */ +test2 : (-5) + 3; + +/* Alternative 2: Using negate function */ +test3 : negate 5 + 3; + +/* Alternative 3: Using subtract */ +test4 : 0 - 5 + 3; + +..out test2; +..out test3; +..out test4; \ No newline at end of file |