예제 #1
0
def test_xvi_to_16():
    assert roman_to_integer("XVI") == 16
예제 #2
0
def test_ii_to_2():
    assert roman_to_integer("II") == 2
예제 #3
0
def test_mcmxciv_to_1994():
    assert roman_to_integer("MCMXCIV") == 1994
예제 #4
0
def test_xv_to_15():
    assert roman_to_integer("XV") == 15
예제 #5
0
def test_xlv_to_45():
    assert roman_to_integer("XLV") == 45
예제 #6
0
def test_xc_to_90():
    assert roman_to_integer("XC") == 90
예제 #7
0
def test_ix_to_9():
    assert roman_to_integer("IX") == 9
예제 #8
0
def test_xx_to_20():
    assert roman_to_integer("XX") == 20
예제 #9
0
def test_i_to_1():
    assert roman_to_integer("I") == 1
예제 #10
0
def test_viii_to_8():
    assert roman_to_integer("VIII") == 8
예제 #11
0
def test_vi_to_6():
    assert roman_to_integer("VI") == 6
예제 #12
0
def test_v_to_5():
    assert roman_to_integer("V") == 5
예제 #13
0
def test_iv_to_4():
    assert roman_to_integer("IV") == 4
예제 #14
0
def test_xviii_to_18():
    assert roman_to_integer("XVIII") == 18
예제 #15
0
def test_x_to_10():
    assert roman_to_integer("X") == 10
예제 #16
0
def test_xix_to_19():
    assert roman_to_integer("XIX") == 19
예제 #17
0
def test_xi_to_11():
    assert roman_to_integer("XI") == 11
예제 #18
0
def test_xxx_to_30():
    assert roman_to_integer("XXX") == 30
예제 #19
0
def test_xiii_to_13():
    assert roman_to_integer("XIII") == 13
예제 #20
0
def test_lviii_to_58():
    assert roman_to_integer("LVIII") == 58
예제 #21
0
def test_xiv_to_14():
    assert roman_to_integer("XIV") == 14
예제 #22
0
def test_c_to_100():
    assert roman_to_integer("C") == 100
예제 #23
0
def test_mcm_to_1900():
    assert roman_to_integer("MCM") == 1900