Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/calc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def test_add_2arg(self):
self.assertEqual(add(3, 4), 7, 'adding three and four')

def test_add_3arg(self):
self.assertEqual(add(3, 5, 2), 10, 'adding three, five and two')
self.assertEqual(add(5, 3, 2), 10, 'adding three, five and two')

def test_add_zeroes(self):
self.assertEqual(add(0, 0, 0), 0 , 'adding zeroes together is zero')
Expand All @@ -17,6 +17,9 @@ def test_sub_2arg(self):
# Make sure 4 - 3 = 1
self.assertEqual(sub(4, 3), 1, 'subtracting three from four')

def test_sub_3arg(self):
# Make sure 4 - 3 = 1
self.assertEqual(sub(4, 3, 1), 0, 'subtracting three from four')

if __name__ == '__main__':
unittest.main()