From 1f5f58980b9b1ac4b01bbee2e8000bd5451ee5dc Mon Sep 17 00:00:00 2001 From: prash7468 Date: Wed, 30 Nov 2022 13:24:29 -0800 Subject: [PATCH] Update calc_test.py --- src/calc_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calc_test.py b/src/calc_test.py index 2911910..255bfb7 100644 --- a/src/calc_test.py +++ b/src/calc_test.py @@ -16,7 +16,9 @@ def test_add_zeroes(self): def test_sub_2arg(self): # Make sure 4 - 3 = 1 self.assertEqual(sub(4, 3), 1, 'subtracting three from four') - + + def sub (a, b, c=0): + return a - b - c if __name__ == '__main__': unittest.main()