From 7de88f996fed168ea0be075e66d5420431fdf061 Mon Sep 17 00:00:00 2001 From: Natalia Diaz <54153654+NataliaDiaz5@users.noreply.github.com> Date: Tue, 27 Jun 2023 00:36:36 +0000 Subject: [PATCH 1/2] changes fail --- tests/test_calculator.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/test_calculator.py b/tests/test_calculator.py index e69de29b..3763f12c 100644 --- a/tests/test_calculator.py +++ b/tests/test_calculator.py @@ -0,0 +1,17 @@ +from calculator import add, div, mul, sub + + +def test_add(): + assert add(1,1) == 0 + + +def test_sub(): + assert sub(1, 1) == 0 + + +def test_mul(): + assert mul(1, 1) == 1 + + +def test_div(): + assert div(2, 1) == 2 \ No newline at end of file From 2919dfbffa3a1f061876e4f626049fbf0e94ff10 Mon Sep 17 00:00:00 2001 From: Natalia Diaz <54153654+NataliaDiaz5@users.noreply.github.com> Date: Tue, 27 Jun 2023 00:42:12 +0000 Subject: [PATCH 2/2] changes --- tests/test_calculator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_calculator.py b/tests/test_calculator.py index 3763f12c..aeae4a4d 100644 --- a/tests/test_calculator.py +++ b/tests/test_calculator.py @@ -2,7 +2,7 @@ def test_add(): - assert add(1,1) == 0 + assert add(1, 1) == 2 def test_sub():