Skip to content

Commit dba6755

Browse files
committed
Added subtract test
Subtract test was missing
1 parent 719a5dc commit dba6755

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

calculator/calculator_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ def test_add(self):
88
result = add(2,2)
99
self.assertEqual(result , 4)
1010

11+
def test_subtract(self):
12+
result = subtract(5,3)
13+
self.assertEqual(result,2)
14+
15+
1116
if __name__ == '__main__':
1217
unittest.main()

0 commit comments

Comments
 (0)