Skip to content
Snippets Groups Projects
Commit a7bc2f57 authored by Muhamed's avatar Muhamed
Browse files

Test 10

parent ad71b424
No related branches found
No related tags found
No related merge requests found
Pipeline #19975 failed
......@@ -5,11 +5,16 @@ import unittest
def convert(n: int) -> str:
if n == 1:
return "I"
if n == 10:
return "X"
return ""
class TestRomanConverter(unittest.TestCase):
def test_1(self):
self.assertEqual(convert(1), "I") # Erwartet "I" für 1
def test_10(self):
self.assertEqual(convert(10), "X") # Erwartet "X" für 10
if __name__ == "__main__":
unittest.main()
\ No newline at end of file
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