Пример #1
0
 def test_3000_is_three_m_s(self):
     self.assertEqual(roman(3000), "MMM")
Пример #2
0
 def test_900_being_1000_100_is_cm(self):
     self.assertEqual(roman(911), "CMXI")
Пример #3
0
 def test_1000_is_a_single_m(self):
     self.assertEqual(roman(1024), "MXXIV")
Пример #4
0
 def test_400_being_500_100_is_cd(self):
     self.assertEqual(roman(402), "CDII")
Пример #5
0
 def test_500_is_a_single_d(self):
     self.assertEqual(roman(575), "DLXXV")
Пример #6
0
 def test_4_being_5_1_is_iv(self):
     self.assertEqual(roman(4), "IV")
Пример #7
0
 def test_60_being_50_10_is_lx(self):
     self.assertEqual(roman(163), "CLXIII")
Пример #8
0
 def test_50_is_a_single_l(self):
     self.assertEqual(roman(59), "LIX")
Пример #9
0
 def test_90_being_100_10_is_xc(self):
     self.assertEqual(roman(93), "XCIII")
Пример #10
0
 def test_20_is_two_x_s(self):
     self.assertEqual(roman(27), "XXVII")
Пример #11
0
 def test_49_is_not_40_5_4_but_rather_50_10_10_1(self):
     self.assertEqual(roman(49), "XLIX")
Пример #12
0
 def test_9_being_10_1_is_ix(self):
     self.assertEqual(roman(9), "IX")
Пример #13
0
 def test_6_being_5_1_is_vi(self):
     self.assertEqual(roman(6), "VI")
Пример #14
0
 def test_5_is_a_single_v(self):
     self.assertEqual(roman(5), "V")
Пример #15
0
 def test_1_is_a_single_i(self):
     self.assertEqual(roman(1), "I")
Пример #16
0
 def test_100_is_a_single_c(self):
     self.assertEqual(roman(141), "CXLI")
Пример #17
0
 def test_2_is_two_i_s(self):
     self.assertEqual(roman(2), "II")
Пример #18
0
 def test_3_is_three_i_s(self):
     self.assertEqual(roman(3), "III")