Example #1
0
 def test_V_is_5(self):
     self.assertEqual(romanToArabic('V'), 5)
Example #2
0
 def test_IIII_is_not_4(self):
     self.assertNotEqual(romanToArabic('IIII'), 4)
Example #3
0
 def test_I_is_1(self):
     self.assertEqual(romanToArabic('I'), 1)
Example #4
0
 def test_IX_is_9(self):
     self.assertEqual(romanToArabic('IX'), 9)
Example #5
0
 def xtest_XCI_is_91(self):
     self.assertEqual(romanToArabic('XCI'), 91)
Example #6
0
 def test_IV_is_4(self):
     self.assertEqual(romanToArabic('IV'), 4)
Example #7
0
 def test_II_is2(self):
     self.assertEqual(romanToArabic('II'), 2)
Example #8
0
 def test_C_is_100(self):
     self.assertEqual(romanToArabic('C'), 100)
Example #9
0
 def test_L_is_50(self):
     self.assertEqual(romanToArabic('L'), 50)
Example #10
0
 def test_X_is_10(self):
     self.assertEqual(romanToArabic('X'), 10)