Skip to content

Commit

Permalink
fixed test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Muna-S committed Jan 12, 2025
1 parent 9e99ce7 commit 1bdeb78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion solutions/tests/test_binary_decimal_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"""
Expand Down

0 comments on commit 1bdeb78

Please sign in to comment.