Skip to content

Commit 87557a1

Browse files
authored
Add files via upload
1 parent 8716b16 commit 87557a1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/tests/test_conditions.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,22 @@ def test_if_complex_order2(self):
5252
assert test.isVarTrue('r2')
5353
assert test.isVarTrue('r3')
5454

55+
56+
def test_3(self):
57+
58+
test.runCode("""
59+
var a, b: shortint;
60+
r: Boolean;
61+
begin
62+
a:=100;
63+
b:=-120;
64+
65+
if (a+b) < 0 then
66+
r:=true
67+
else
68+
r:=false;
69+
70+
end.
71+
""")
72+
73+
assert test.isVarTrue('r')

0 commit comments

Comments
 (0)