def test_that_converter_returns_1989_when_given_mcmlxxxix(self):
     self.assertEqual(1989, Converter.convert_from_roman_to_arabic("MCMLXXXIX"))
Exemplo n.º 2
0
 def test_that_converter_returns_4_when_given_iv(self):
     self.assertEqual(4, Converter.convert_from_roman_to_arabic("IV"))
 def test_that_converter_returns_9_when_given_ix(self):
     self.assertEqual(9, Converter.convert_from_roman_to_arabic("IX"))
 def test_that_converter_returns_1066_when_given_mlxvi(self):
     self.assertEqual(1066, Converter.convert_from_roman_to_arabic("MLXVI"))
Exemplo n.º 5
0
 def test_that_converter_returns_2000_when_given_mm(self):
     self.assertEqual(2000, Converter.convert_from_roman_to_arabic("MM"))
 def test_that_converter_returns_5_when_given_v(self):
     self.assertEqual(5, Converter.convert_from_roman_to_arabic("V"))
Exemplo n.º 7
0
 def test_that_converter_returns_9_when_given_ix(self):
     self.assertEqual(9, Converter.convert_from_roman_to_arabic("IX"))
Exemplo n.º 8
0
 def test_that_converter_returns_90_when_given_xc(self):
     self.assertEqual(90, Converter.convert_from_roman_to_arabic("XC"))
 def test_that_converter_returns_501_when_given_di(self):
     self.assertEqual(501, Converter.convert_from_roman_to_arabic("DI"))
 def test_that_converter_returns_2000_when_given_mm(self):
     self.assertEqual(2000, Converter.convert_from_roman_to_arabic("MM"))
 def test_that_converter_returns_400_when_given_cd(self):
     self.assertEqual(400, Converter.convert_from_roman_to_arabic("CD"))
 def test_that_converter_returns_90_when_given_xc(self):
     self.assertEqual(90, Converter.convert_from_roman_to_arabic("XC"))
 def test_that_converter_returns_30_when_given_xxx(self):
     self.assertEqual(30, Converter.convert_from_roman_to_arabic("XXX"))
Exemplo n.º 14
0
 def test_that_converter_returns_5_when_given_v(self):
     self.assertEqual(5, Converter.convert_from_roman_to_arabic("V"))
Exemplo n.º 15
0
 def test_that_converter_returns_1066_when_given_mlxvi(self):
     self.assertEqual(1066, Converter.convert_from_roman_to_arabic("MLXVI"))
Exemplo n.º 16
0
 def test_that_converter_returns_30_when_given_xxx(self):
     self.assertEqual(30, Converter.convert_from_roman_to_arabic("XXX"))
Exemplo n.º 17
0
 def test_that_converter_returns_1989_when_given_mcmlxxxix(self):
     self.assertEqual(1989,
                      Converter.convert_from_roman_to_arabic("MCMLXXXIX"))
Exemplo n.º 18
0
 def test_that_converter_returns_400_when_given_cd(self):
     self.assertEqual(400, Converter.convert_from_roman_to_arabic("CD"))
 def test_that_converter_returns_3_when_given_iii(self):
     self.assertEqual(3, Converter.convert_from_roman_to_arabic("III"))
Exemplo n.º 20
0
 def test_that_converter_returns_1_when_given_i(self):
     self.assertEqual(1, Converter.convert_from_roman_to_arabic("I"))
 def test_that_converter_returns_4_when_given_iv(self):
     self.assertEqual(4, Converter.convert_from_roman_to_arabic("IV"))