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