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

Test 14/17 erfolgreich

parent eedae99f
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 = [(1000, 'M'), (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'), (90, 'XC'), (50, 'L'), (40, 'XL'), (10, 'X'), (9, 'IX'), (5, 'V'), (4, 'IV'), (1, 'I')]
roman_str = ''
......@@ -94,6 +94,10 @@ class TestConverter(unittest.TestCase):
res = self.c.convert(1111)
self.assertEqual(res, 'MCXI')
def test_convertNintyNine(self):
res = self.c.convert(99)
self.assertEqual(res, 'XCIX')
......
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