Example #1
0
 def test_simple5(self):
     self.assertEqual(5, rom2ar('V'))
Example #2
0
 def test_simple1(self):
     self.assertEqual(1, rom2ar('I'))
Example #3
0
 def test_nonst999(self):
     self.assertEqual(999, rom2ar('IM'))
Example #4
0
 def test_nonst4(self):
     self.assertEqual(4, rom2ar('IIII'))
Example #5
0
 def test_nonst499(self):
     self.assertEqual(499, rom2ar('ID'))
Example #6
0
 def test_compl1776(self):
     self.assertEqual(1776, rom2ar('MDCCLXXVI'))
Example #7
0
 def test_compl(self):
     self.assertEqual(1954, rom2ar('MCMLIV'))
Example #8
0
 def test_simple14(self):
     self.assertEqual(14, rom2ar('XIV'))
Example #9
0
 def test_simple990(self):
     self.assertEqual(990, rom2ar('CMXC'))
Example #10
0
 def test_simple9(self):
     self.assertEqual(9, rom2ar('IX'))
Example #11
0
 def test_simple3(self):
     self.assertEqual(3, rom2ar('III'))
Example #12
0
 def test_simple1000(self):
     self.assertEqual(1000, rom2ar('M'))
Example #13
0
 def test_simple500(self):
     self.assertEqual(500, rom2ar('D'))
Example #14
0
 def test_simple10(self):
     self.assertEqual(10, rom2ar('X'))