From 30751104e0e98bbd9d202500fd3ee0c288c2e1f4 Mon Sep 17 00:00:00 2001 From: Shuai Xu Date: Mon, 15 Aug 2022 22:34:42 -0400 Subject: [PATCH] BUGFIX: 3-arg sub was not implemented in the initial project. The following change allows the use of sub like: '''py sub(5,4,1) #0 ''' We promised customers that we would have this in our initial release, so this was a bug. --- src/calc_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calc_test.py b/src/calc_test.py index 2911910..41ae6b7 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): + sefl.assertEqual(sub(4,3,1),0,'sub three and one from four') if __name__ == '__main__': unittest.main()