示例#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))