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

Test 12/17 erfolgreich

parent 4fc54249
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 = [(500, 'D'), (100, 'C'), (50, 'L'), (40, 'XL'), (10, 'X'), (9, 'IX'), (5, 'V'), (4, 'IV'), (1, 'I')]
roman_numbers = [(1000, 'M'), (500, 'D'), (100, 'C'), (50, 'L'), (40, 'XL'), (10, 'X'), (9, 'IX'), (5, 'V'), (4, 'IV'), (1, 'I')]
roman_str = ''
......@@ -86,6 +86,10 @@ class TestConverter(unittest.TestCase):
res = self.c.convert(500)
self.assertEqual(res, 'D')
def test_convertThousand(self):
res = self.c.convert(1000)
self.assertEqual(res, 'M')
......
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