Skip to content

Commit

Permalink
BUGFIX: 3-arg subtraction was not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Gross committed Nov 30, 2023
1 parent 0e54bd7 commit 7c4c2b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/calc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ 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):
self.assertEqual(sub(4, 3, 1), 0, 'subtracting three and one from four')

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

1 comment on commit 7c4c2b6

@jjgross77
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any edge cases I have forgotten?

Please sign in to comment.