diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_and_operator_simple.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_and_operator_simple.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_and_operator_simple.txt b/js/scripting-lang/scratch_tests/test_and_operator_simple.txt new file mode 100644 index 0000000..7d12e77 --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_and_operator_simple.txt @@ -0,0 +1,26 @@ +/* Test and operator as infix operator */ + +/* Simple boolean values */ +true_val : true; +false_val : false; + +/* Test and operator with simple values */ +result1 : true_val and false_val; +result2 : false_val and true_val; +result3 : true_val and true_val; + +/* Test with comparisons */ +comp1 : (-5) >= 0; /* false */ +comp2 : (-5) <= 120; /* true */ +result4 : comp1 and comp2; /* false and true = false */ + +/* Test the original problematic expression */ +original : (-5 >= 0) and (-5 <= 120); + +..out result1; +..out result2; +..out result3; +..out comp1; +..out comp2; +..out result4; +..out original; \ No newline at end of file |