示例#1
0
 def test_1(self):
     self.assertEqual(Roman.do_roman_seq(37), ('XXXVII'))
示例#2
0
 def test_16(self):
     self.assertEqual(Roman.do_roman_seq('123'), ('CXXIII'))
示例#3
0
 def test_14(self):
     self.assertEqual(Roman.do_roman_seq('12'), ('XII'))
示例#4
0
 def test_15(self):
     self.assertEqual(Roman.do_roman_seq('243'), ('CCXLIII'))
示例#5
0
 def test_12(self):
     self.assertEqual(Roman.do_roman_seq(12046), ('Выходит из диапазона'))
示例#6
0
 def test_13(self):
     self.assertEqual(Roman.do_roman_seq('hello'), ('Это не цифра!'))
示例#7
0
 def test_10(self):
     self.assertEqual(Roman.do_roman_seq(9 + 1999),
                      ('Выходит из диапазона'))
示例#8
0
 def test_4(self):
     self.assertEqual(Roman.do_roman_seq(381), ('CCCLXXXI'))
示例#9
0
 def test_8(self):
     self.assertEqual(Roman(4) + Roman(965), Roman(969))
示例#10
0
 def test_9(self):
     self.assertEqual(Roman(555) + Roman(1222), Roman(1777))
示例#11
0
 def test_7(self):
     self.assertEqual(Roman(3) + Roman(165), Roman(168))
示例#12
0
 def test_6(self):
     self.assertEqual(Roman(34) + Roman(1965), Roman(1999))
示例#13
0
 def test_5(self):
     self.assertEqual(Roman.do_roman_seq(8), ('VIII'))
示例#14
0
 def test_2(self):
     self.assertEqual(Roman.do_roman_seq(1990), ('MCMXC'))
示例#15
0
 def test_11(self):
     self.assertEqual(Roman.do_roman_seq('nechislo'), ('Это не цифра!'))
示例#16
0
from roman_logic import Roman

seq = input()
print(Roman(seq))
示例#17
0
 def test_3(self):
     self.assertEqual(Roman.do_roman_seq(765), ('DCCLXV'))