diff options
Diffstat (limited to 'js/scripting-lang/scratch_tests/test_and_operator.txt')
-rw-r--r-- | js/scripting-lang/scratch_tests/test_and_operator.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/scripting-lang/scratch_tests/test_and_operator.txt b/js/scripting-lang/scratch_tests/test_and_operator.txt new file mode 100644 index 0000000..b4624ff --- /dev/null +++ b/js/scripting-lang/scratch_tests/test_and_operator.txt @@ -0,0 +1,13 @@ +/* Test the and operator in complex expressions */ + +/* Test the complex expression directly */ +test_expr : age -> age >= 0 and age <= 120; + +/* Test with different values */ +result1 : test_expr 30; /* Should be true */ +result2 : test_expr 150; /* Should be false */ +result3 : test_expr -5; /* Should be false */ + +..out result1; +..out result2; +..out result3; \ No newline at end of file |