Beispiel #1
0
 def test_two_three(self):
     assert to_roman(2) == 'II'
     assert to_roman(3) == 'III'
Beispiel #2
0
 def test_twenty_fifteen(self):
     assert to_roman(2015) == 'MMXV'
Beispiel #3
0
 def test_one(self):
     assert to_roman(1) == 'I'
Beispiel #4
0
 def test_nine(self):
     assert to_roman(9) == 'IX'
Beispiel #5
0
 def test_ten(self):
     assert to_roman(10) == 'X'
Beispiel #6
0
 def test_six_seven_eight(self):
     assert to_roman(6) == 'VI'
     assert to_roman(7) == 'VII'
     assert to_roman(8) == 'VIII'
Beispiel #7
0
 def test_five(self):
     assert to_roman(5) == 'V'
Beispiel #8
0
 def test_four(self):
     assert to_roman(4) == 'IV'
Beispiel #9
0
def test_to_roman_1():
    assert to_roman(1) == 'I'
Beispiel #10
0
def test_to_roman(arabic, roman):
    assert to_roman(arabic) == roman