Пример #1
0
 def testV(self):
     self.assertEqual(romanNumber(5), "V")
Пример #2
0
 def testMCMLXXXIV(self):
     self.assertEqual(romanNumber(1984), "MCMLXXXIV")
Пример #3
0
 def testVI(self):
     self.assertEqual(romanNumber(6), "VI")
Пример #4
0
 def testMMMCMXCIX(self):
     self.assertEqual(romanNumber(3999), "MMMCMXCIX")
Пример #5
0
 def testMMXIX(self):
     self.assertEqual(romanNumber(2019), "MMXIX")
Пример #6
0
 def testXLIX(self):
     self.assertEqual(romanNumber(49), "XLIX")
Пример #7
0
 def testLIX(self):
     self.assertEqual(romanNumber(59), "LIX")
Пример #8
0
 def testXL(self):
     self.assertEqual(romanNumber(40), "XL")
Пример #9
0
 def testL(self):
     self.assertEqual(romanNumber(50), "L")
Пример #10
0
 def testIX(self):
     self.assertEqual(romanNumber(9), "IX")
Пример #11
0
 def testIV(self):
     self.assertEqual(romanNumber(4), "IV")
Пример #12
0
 def testXX(self):
     self.assertEqual(romanNumber(20), "XX")
Пример #13
0
 def testXXVII(self):
     self.assertEqual(romanNumber(27), "XXVII")
Пример #14
0
 def testIII(self):
     self.assertEqual(romanNumber(3), "III")
     print("III")
Пример #15
0
 def testVII(self):
     self.assertEqual(romanNumber(7), "VII")
     print("VII")
Пример #16
0
from Funktion2zusammengefasst import romanNumber

while True:
    try: input = raw_input
    except NameError: pass
    gewuenschteZahl = int(input("Arabische Zahl eingeben "))
    print("Römische Zahl: " + romanNumber(gewuenschteZahl))