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