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