From 96f8e263312cd2a7a0601870a56deccccce3c9ac Mon Sep 17 00:00:00 2001 From: Gilang Pangestu Date: Sat, 17 Jun 2023 20:38:39 +0700 Subject: [PATCH 1/3] Fix test file --- tests/test_calculator.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/test_calculator.py b/tests/test_calculator.py index e69de29b..0a2f2dc5 100644 --- a/tests/test_calculator.py +++ b/tests/test_calculator.py @@ -0,0 +1,18 @@ +from calculator import add, div, mul, sub + + +def test_add(): + assert add(1, 1) == 2 + + +def test_sub(): + assert sub(1, 1) == 0 + + +def test_mul(): + assert mul(1, 1) == 1 + + +def test_div(): + assert div(2, 1) == 2 + From f614931b04ce14c7ba7b028c2e4ccb4f775e1603 Mon Sep 17 00:00:00 2001 From: Gilang Pangestu Date: Sat, 17 Jun 2023 20:41:48 +0700 Subject: [PATCH 2/3] Fix test file --- 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 0a2f2dc5..4f2742e1 100644 --- a/tests/test_calculator.py +++ b/tests/test_calculator.py @@ -2,7 +2,7 @@ def test_add(): - assert add(1, 1) == 2 + assert add(1,1) == 0 def test_sub(): From b91a3b4015e1ed498c02401c473a6fee8b8028b2 Mon Sep 17 00:00:00 2001 From: Gilang Pangestu Date: Sat, 17 Jun 2023 20:49:13 +0700 Subject: [PATCH 3/3] Fix correct test file --- 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 4f2742e1..8542aa62 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():