Skip to content

Commit

Permalink
add a unit test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySentry committed Jan 29, 2024
1 parent 736d6f4 commit ca571f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/test_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ def test_divide():
assert Calculator.divide(0, 2.0) == 0
assert Calculator.divide(-4, 2.0) == -2.0
# assert Calculator.divide(2.0, 0.0) == 'Cannot divide by 0'
assert Calculator.divide(2.0, 4.0) == 0.5

0 comments on commit ca571f8

Please sign in to comment.