예제 #1
0
def test_4_gives_IV():
    assert_equals(to_roman_numeral(4), "IV")
예제 #2
0
def test_999_gives_CMXCIX():
    assert_equals(to_roman_numeral(999), "CMXCIX")
예제 #3
0
def test_18_gives_XVIII():
    assert_equals(to_roman_numeral(18), "XVIII")
예제 #4
0
def test_1438_gives_MCDXXXVIII():
    assert_equals(to_roman_numeral(1438), "MCDXXXVIII")
예제 #5
0
def test_1_gives_I():
    assert_equals(to_roman_numeral(1), "I")
예제 #6
0
def test_1000_gives_M():
    assert_equals(to_roman_numeral(1000), "M")
예제 #7
0
def test_500_gives_D():
    assert_equals(to_roman_numeral(500), "D")
예제 #8
0
def test_50_gives_L():
    assert_equals(to_roman_numeral(50), "L")
예제 #9
0
def test_10_gives_X():
    assert_equals(to_roman_numeral(10), "X")
예제 #10
0
def test_5_gives_V():
    assert_equals(to_roman_numeral(5), "V")