From 7c4c2b6914e949e504518a2944bb84741ebd9e5f Mon Sep 17 00:00:00 2001 From: Jonathan Gross Date: Thu, 30 Nov 2023 13:31:56 -0800 Subject: [PATCH] BUGFIX: 3-arg subtraction was not implemented --- src/calc_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calc_test.py b/src/calc_test.py index 2911910..e6638c8 100644 --- a/src/calc_test.py +++ b/src/calc_test.py @@ -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()