From 1bdeb78383aaff018aee51cfe95ac78600665eed Mon Sep 17 00:00:00 2001 From: Muna Sattouf Date: Sun, 12 Jan 2025 17:19:12 +0200 Subject: [PATCH] fixed test error --- solutions/tests/test_binary_decimal_conversion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solutions/tests/test_binary_decimal_conversion.py b/solutions/tests/test_binary_decimal_conversion.py index 9a730e226..9f0de303d 100644 --- a/solutions/tests/test_binary_decimal_conversion.py +++ b/solutions/tests/test_binary_decimal_conversion.py @@ -18,6 +18,8 @@ class TestBinaryDecimalConversion(unittest.TestCase): + """Tests for binaru_decimal_conversion function""" + def test_decimal_to_binary(self): """Should convert positive decimal numbers to binary""" self.assertEqual(decimal_to_binary(10), "1010") @@ -32,7 +34,7 @@ def test_zero_decimal_to_binary(self): def test_zero_binary_to_decimal(self): """should return 0""" - self.assertEqual(binary_to_decimal(0), "0") + self.assertEqual(binary_to_decimal("0"), "0") def test_large_decimal_to_binary(self): """Should correctly handle large decimal numbers"""