Skip to content

Commit 9bbbe09

Browse files
authored
Add a unit test assertion for add function
Add a unit test assertion for add function
2 parents 3e4c52c + 75c584e commit 9bbbe09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/test_calculator.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
def test_add():
5+
assert Calculator.add(2, 4) == 6.0
56
assert Calculator.add(1, 2) == 3.0
67
assert Calculator.add(1.0, 2.0) == 3.0
78
assert Calculator.add(0, 2.0) == 2.0

0 commit comments

Comments
 (0)