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

Test 6/17 erfolgreich

parent d3fa7851
No related branches found
No related tags found
2 merge requests!4Main,!2Main to develop
Pipeline #19934 passed
......@@ -26,7 +26,7 @@ class IConverter(ABC):
class Converter(IConverter):
def convert(self, num: int) -> str:
roman_numbers = [(5, 'V'), (4, 'IV'), (1, 'I')]
roman_numbers = [(9, 'IX'), (5, 'V'), (4, 'IV'), (1, 'I')]
roman_str = ''
......@@ -62,6 +62,10 @@ class TestConverter(unittest.TestCase):
res = self.c.convert(5)
self.assertEqual(res, 'V')
def test_convertTwo(self):
res = self.c.convert(9)
self.assertEqual(res, 'IX')
......
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