From 151e6c67e9d5b5f6dd911d0beea41f8a014ac5f1 Mon Sep 17 00:00:00 2001 From: Kiana Dyson Date: Tue, 19 Jul 2022 15:43:56 -0400 Subject: [PATCH] BUGFIX: 3-arg-subtraction was not implemented The following change allows use of sub like ```py sub(5, 4, 1) #0 ``` We promised customers we would have this in our initial release, so this is a bug, not an enhancement. --- src/calc_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calc_test.py b/src/calc_test.py index 2911910..767b9af 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 from four and then one from result') if __name__ == '__main__': unittest.main()