Beispiel #1
0
def test_arabic_MCDXCIX():
    assert_equals(arabic('MCDXCIX'), 1499)
Beispiel #2
0
def test_arabic_M():
    assert_equals(arabic('M'), 1000)
Beispiel #3
0
def test_arabic_MDX():
    assert_equals(arabic('MDX'), 1510)
Beispiel #4
0
def test_arabic_XL():
    assert_equals(arabic('XL'), 40)
Beispiel #5
0
def test_arabic_CM():
    assert_equals(arabic('CM'), 900)
Beispiel #6
0
def test_arabic_I():
    assert_equals(arabic('I'), 1)
Beispiel #7
0
def test_roundtrip():
    assert_equals(arabic(roman(1)), 1)
Beispiel #8
0
def test_roundtrip_XLIX():
    assert_equals(roman(arabic('XLIX')), 'XLIX')
Beispiel #9
0
def test_roundtrip_49():
    assert_equals(arabic(roman(49)), 49)
Beispiel #10
0
def test_arabicCCCLXXXIX():
    assert_equals(arabic('CCCLXXXIX'), 389)
Beispiel #11
0
def test_arabicCCCLXXXVIII():
    assert_equals(arabic('CCCLXXXVIII'), 388)
Beispiel #12
0
def test_arabic_MMIX():
    assert_equals(arabic('MMIX'), 2009)