예제 #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