diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_precedence_variations.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_precedence_variations.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_precedence_variations.txt b/js/scripting-lang/scratch_tests/test_precedence_variations.txt new file mode 100644 index 0000000..66a43bf --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_precedence_variations.txt @@ -0,0 +1,16 @@ +/* Test various precedence combinations */ + +/* These should work */ +test1 : 5 + 3; +test2 : -5; +test3 : 5 * -3; +test4 : (-5) + 3; + +/* This is the problematic one */ +test5 : -5 + 3; + +..out test1; +..out test2; +..out test3; +..out test4; +..out test5; \ No newline at end of file |