示例#1
0
def test_romanConverter_negative():
    assert romanConverter(-4) == "Error, negative number"
示例#2
0
def test_romanConverter_4():
    assert romanConverter(4) == "IV"
示例#3
0
def test_romanConverter_decimal():
    assert romanConverter("2.2") == "Error, input is not integer"
示例#4
0
def test_romanConverter_0():
    assert romanConverter(0) == "Error, no zero conversion"
示例#5
0
def test_romanConverter_2020():
    assert romanConverter(2020) == "MMXX"
示例#6
0
def test_romanConverter_letter():
    assert romanConverter("4a0") == "Error, input is not integer"
示例#7
0
def test_romanConverter_900():
    assert romanConverter(900) == "CM"
示例#8
0
def test_romanConverter_1000():
    assert romanConverter(1000) == "M"
示例#9
0
def test_romanConverter_1():
    assert romanConverter(1) == "I"
示例#10
0
def test_romanConverter_500():
    assert romanConverter(500) == "D"
示例#11
0
def test_romanConverter_400():
    assert romanConverter(400) == "CD"
示例#12
0
def test_romanConverter_90():
    assert romanConverter(90) == "XC"
示例#13
0
def test_romanConverter_40():
    assert romanConverter(40) == "XL"
示例#14
0
def test_romanConverter_10():
    assert romanConverter(10) == "X"
示例#15
0
def test_romanConverter_5():
    assert romanConverter(5) == "V"