示例#1
0
 def test_500_is_D(self):
     self.assertEqual('D', str(RomanNumeral(500)))
示例#2
0
 def test_400_is_CD(self):
     self.assertEqual('CD', str(RomanNumeral(400)))
示例#3
0
 def test_0_is_empty_string(self):
     self.assertEqual('', str(RomanNumeral(0)))
示例#4
0
 def test_90_is_XC(self):
     self.assertEqual('XC', str(RomanNumeral(90)))
示例#5
0
 def test_4_is_IV(self):
     self.assertEqual('IV', str(RomanNumeral(4)))
示例#6
0
 def test_40_is_XL(self):
     self.assertEqual('XL', str(RomanNumeral(40)))
示例#7
0
 def test_18_is_XVIII(self):
     self.assertEqual('XVIII', str(RomanNumeral(18)))
示例#8
0
 def test_1776_is_MDCCLXXVI(self):
     self.assertEqual('MDCCLXXVI', str(RomanNumeral(1776)))
示例#9
0
 def test_9_is_IX(self):
     self.assertEqual('IX', str(RomanNumeral(9)))
示例#10
0
 def test_10_is_X(self):
     self.assertEqual('X', str(RomanNumeral(10)))
示例#11
0
 def test_7_is_VII(self):
     self.assertEqual('VII', str(RomanNumeral(7)))
示例#12
0
 def test_6_is_VI(self):
     self.assertEqual('VI', str(RomanNumeral(6)))
示例#13
0
 def test_5_is_V(self):
     self.assertEqual('V', str(RomanNumeral(5)))
示例#14
0
 def test_1000_is_M(self):
     self.assertEqual('M', str(RomanNumeral(1000)))
示例#15
0
 def test_50_is_L(self):
     self.assertEqual('L', str(RomanNumeral(50)))
示例#16
0
 def test_900_is_CM(self):
     self.assertEqual('CM', str(RomanNumeral(900)))
示例#17
0
 def test_60_is_LX(self):
     self.assertEqual('LX', str(RomanNumeral(60)))
示例#18
0
 def test_1_is_I(self):
     self.assertEqual('I', str(RomanNumeral(1)))
示例#19
0
 def test_3_is_III(self):
     self.assertEqual('III', str(RomanNumeral(3)))