From 3343632967e7fd88ef16b17a924a86879586dd7f Mon Sep 17 00:00:00 2001 From: Nora Shapiro Date: Thu, 12 Sep 2024 14:16:52 -0700 Subject: [PATCH] re-add test --- api/calculator/test_calculator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/calculator/test_calculator.py b/api/calculator/test_calculator.py index 988078b..01443e4 100644 --- a/api/calculator/test_calculator.py +++ b/api/calculator/test_calculator.py @@ -28,6 +28,6 @@ def test_divide(): assert Calculator.divide(1.0, 2.0) == 0.5 assert Calculator.divide(0, 2.0) == 0 assert Calculator.divide(-4, 2.0) == -2.0 -# -# def test_divide_by_0(): -# assert Calculator.divide(2.0, 0) == 'Cannot divide by 0' + +def test_divide_by_0(): + assert Calculator.divide(2.0, 0) == 'Cannot divide by 0'