Skip to content

Commit

Permalink
Added assert to test
Browse files Browse the repository at this point in the history
  • Loading branch information
tanay-man committed Jul 23, 2024
1 parent 75a1d23 commit 11712a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 5 additions & 2 deletions integration_tests/class_03.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ def circle_print(self:"Circle"):
print("Circle: r = ",str(self.radius)," area = ",str(area))

def main():
c : Circle = Circle(1.0)
c.circle_print()
c : Circle = Circle(1.0)
c.circle_print()
assert abs(c.circle_area() - 3.141593) <= 1e-6
c.radius = 1.5
c.circle_print()
assert abs(c.circle_area() - 7.068583) < 1e-6

if __name__ == "__main__":
main()
4 changes: 0 additions & 4 deletions tests/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,6 @@ asr = true
pass = "class_constructor"
cumulative = true

[[test]]
filename = "../integration_tests/class_03.py"
run = true

[[test]]
filename = "../integration_tests/callback_01.py"
asr = true
Expand Down

0 comments on commit 11712a5

Please sign in to comment.