示例#1
0
 def test_decimal_999_to_roman(self):
     roman_number = decimal_to_roman(999)
     self.assertEqual(roman_number, "CMXCIX")
示例#2
0
 def test_decimal_2_to_roman(self):
     roman_number = decimal_to_roman(2)
     self.assertEqual(roman_number, "II")
示例#3
0
 def test_decimal_693_to_roman(self):
     roman_number = decimal_to_roman(693)
     self.assertEqual(roman_number, "DCXCIII")
示例#4
0
 def test_decimal_954_to_roman(self):
     roman_number = decimal_to_roman(954)
     self.assertEqual(roman_number, "CMLIV")
示例#5
0
 def test_decimal_149_to_roman(self):
     roman_number = decimal_to_roman(149)
     self.assertEqual(roman_number, "CXLIX")
示例#6
0
 def test_decimal_478_to_roman(self):
     roman_number = decimal_to_roman(478)
     self.assertEqual(roman_number, "CDLXXVIII")
示例#7
0
 def test_decimal_87_to_roman(self):
     roman_number = decimal_to_roman(87)
     self.assertEqual(roman_number, "LXXXVII")
示例#8
0
 def test_decimal_91_to_roman(self):
     roman_number = decimal_to_roman(91)
     self.assertEqual(roman_number, "XCI")
示例#9
0
 def test_decimal_72_to_roman(self):
     roman_number = decimal_to_roman(72)
     self.assertEqual(roman_number, "LXXII")
示例#10
0
 def test_decimal_58_to_roman(self):
     roman_number = decimal_to_roman(58)
     self.assertEqual(roman_number, "LVIII")
示例#11
0
 def test_decimal_43_to_roman(self):
     roman_number = decimal_to_roman(43)
     self.assertEqual(roman_number, "XLIII")
示例#12
0
 def test_decimal_24_to_roman(self):
     roman_number = decimal_to_roman(24)
     self.assertEqual(roman_number, "XXIV")
示例#13
0
 def test_decimal_4_to_roman(self):
     roman_number = decimal_to_roman(4)
     self.assertEqual(roman_number, "IV")