Example #1
0
 def test_4(self):
     self.assertEqual(roman_to_int('IV'), 4)
Example #2
0
 def test_1(self):
     self.assertEqual(roman_to_int('I'), 1)
Example #3
0
 def test_222(self):
     self.assertEqual(roman_to_int('CCXXII'), 222)
Example #4
0
 def test_1904(self):
     self.assertEqual(roman_to_int('MCMIV'), 1904)
Example #5
0
 def test_21(self):
     self.assertEqual(roman_to_int('XXI'), 21)