Skip to content

Commit

Permalink
Use assert statement in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
namannimmo10 committed Feb 14, 2022
1 parent a64b0df commit 08653ab
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration_tests/expr_01.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def main0():
x: i32
x = (2+3)*5
print(x)
assert x == 25

main0()

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/expr_03.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ def main0():
while x > 0:
result = result * x
x -= 1
print(result)
assert result == 120

main0()
2 changes: 1 addition & 1 deletion integration_tests/expr_04.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def main0():
sum += i
if i > 5:
break
print(sum)
assert sum == 21

main0()
2 changes: 1 addition & 1 deletion integration_tests/expr_05.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def main0():
b: i32
a = 10
b = -5
print(test_multiply(a, b))
assert test_multiply(a, b) == -50

main0()
2 changes: 1 addition & 1 deletion integration_tests/modules_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def main0():
x: i32
x = (2+3)*5
print(x)
assert x == 25
f()
# x = g()
# print(x)
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/modules_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def main0():
x: i32
x = (2+3)*5
print(x)
assert x == 25
f()

main0()

0 comments on commit 08653ab

Please sign in to comment.