Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9bbbe09

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

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎app/test_calculator.py

Copy file name to clipboardExpand all lines: app/test_calculator.py
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.