示例#1
0
def test_input_MDCCLXXVI_output_1776():
    assert roman_to_int("MDCCLXXVI") == 1776
示例#2
0
def test_input_IX_output_9():
    assert roman_to_int("IX") == 9
示例#3
0
def test_input_XCIV_output_94():
    assert roman_to_int("XCIV") == 94
示例#4
0
def test_input_XLII_output_42():
    assert roman_to_int("XLII") == 42
示例#5
0
def test_input_XV_output_15():
    assert roman_to_int("XV") == 15
示例#6
0
def test_input_V_output_five():
    assert roman_to_int("V") == 5
示例#7
0
def test_input_I_output_one():
    assert roman_to_int("I") == 1
示例#8
0
def test_roman_to_int_with_data(test_input, expected):
    assert roman_to_int(test_input) == expected