Exemple #1
0
def testSmallNumber():
    assert arabicToRoman(6) == 'VI'
Exemple #2
0
def testMax():
    assert arabicToRoman(4999) == 'MMMMCMXCIX'
Exemple #3
0
def testNumberandString():
    assert arabicToRoman('aloha345hi') == ''
Exemple #4
0
def testDecimalNumber():
    assert arabicToRoman(3.14) == ''
Exemple #5
0
def testString():
    assert arabicToRoman('I love the romans') == ''
Exemple #6
0
def testTooBig():
    assert arabicToRoman(8000) == ''
Exemple #7
0
def testBigNumber():
    assert arabicToRoman(3987) == 'MMMCMLXXXVII'
Exemple #8
0
def testMediumNumber():
    assert arabicToRoman(869) == 'DCCCLXIX'