Пример #1
0
 def test_I(self):
     self.assertEqual(sum("I", "I"), "II")
     self.assertEqual(sum("I", "II"), "III")
     self.assertEqual(sum("II", "II"), "IIII")
Пример #2
0
 def test_VIIII(self):
     self.assertEqual(sum("V", "IIII"), "VIIII")
     self.assertEqual(sum("VI", "III"), "VIIII")
     self.assertEqual(sum("VIII", "I"), "VIIII")
Пример #3
0
 def test_L(self):
     self.assertEqual(sum("XX", "XXX"), "L")
     self.assertEqual(sum("XXVI", "XXIIII"), "L")
Пример #4
0
 def test_X(self):
     self.assertEqual(sum("V", "V"), "X")
     self.assertEqual(sum("VI", "IIII"), "X")
     self.assertEqual(sum("VII", "III"), "X")
     self.assertEqual(sum("II", "VIII"), "X")