Skip to content
Snippets Groups Projects
Commit 4fc54249 authored by Daniel Rafeh's avatar Daniel Rafeh
Browse files

Test 11/17 erfolgreich

parent f712c36e
No related branches found
No related tags found
2 merge requests!4Main,!2Main to develop
......@@ -26,7 +26,7 @@ class IConverter(ABC):
class Converter(IConverter):
def convert(self, num: int) -> str:
roman_numbers = [(100, 'C'), (50, 'L'), (40, 'XL'), (10, 'X'), (9, 'IX'), (5, 'V'), (4, 'IV'), (1, 'I')]
roman_numbers = [(500, 'D'), (100, 'C'), (50, 'L'), (40, 'XL'), (10, 'X'), (9, 'IX'), (5, 'V'), (4, 'IV'), (1, 'I')]
roman_str = ''
......@@ -82,6 +82,10 @@ class TestConverter(unittest.TestCase):
res = self.c.convert(100)
self.assertEqual(res, 'C')
def test_convertFiveHundred(self):
res = self.c.convert(500)
self.assertEqual(res, 'D')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment