From 47ce33f56e1699f115fde480cd2eb8fc8b7a56fb Mon Sep 17 00:00:00 2001 From: Sandeep Singh Adhikari Date: Tue, 5 Jul 2022 11:55:51 +0530 Subject: [PATCH 1/2] changed values --- src/calc_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calc_test.py b/src/calc_test.py index 2911910..123c6b7 100644 --- a/src/calc_test.py +++ b/src/calc_test.py @@ -8,7 +8,7 @@ def test_add_2arg(self): self.assertEqual(add(3, 4), 7, 'adding three and four') def test_add_3arg(self): - self.assertEqual(add(3, 5, 2), 10, 'adding three, five and two') + self.assertEqual(add(5, 3, 2), 10, 'adding three, five and two') def test_add_zeroes(self): self.assertEqual(add(0, 0, 0), 0 , 'adding zeroes together is zero') From f6144a0ea05d1726819ac00b52278055a6b2ffed Mon Sep 17 00:00:00 2001 From: Sandeep Singh Adhikari Date: Tue, 5 Jul 2022 12:41:37 +0530 Subject: [PATCH 2/2] added 3 args subs --- src/calc_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calc_test.py b/src/calc_test.py index 123c6b7..1ce97af 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): + # Make sure 4 - 3 = 1 + self.assertEqual(sub(4, 3, 1), 0, 'subtracting three from four') if __name__ == '__main__': unittest.main()