From 70de3a3986631bae889d23b49bb14e8f41481b40 Mon Sep 17 00:00:00 2001 From: Jeffrey Chow Date: Wed, 30 Nov 2022 22:10:20 -0800 Subject: [PATCH] BUGFIX 3-arg sub was not implemented The following changes allow the use of sub blah blah blah, some detailed comment --- src/calc_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calc_test.py b/src/calc_test.py index 2911910..2953894 100644 --- a/src/calc_test.py +++ b/src/calc_test.py @@ -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): + self.assertEqual(sub(4, 3, 1), 0, 'subtracting three and one from four') + if __name__ == '__main__': unittest.main()