Пример #1
0
 def test_lychrel_num_1000_is_1(self):
    self.assertEqual(1, lychrel.lychrel_num(0b100, 2))
Пример #2
0
 def test_lychrel_num_1F_is_2(self):
    self.assertEqual(2, lychrel.lychrel_num(0x1F, 16))
Пример #3
0
 def test_lychrel_num_BF_is_2(self):
    self.assertEqual(8, lychrel.lychrel_num(0xBF, 16))
Пример #4
0
 def test_lychrel_num_39_is_2(self):
    self.assertEqual(2, lychrel.lychrel_num(39, 10))
Пример #5
0
 def test_lychrel_num_193_is_8(self):
    self.assertEqual(8, lychrel.lychrel_num(193, 10))
Пример #6
0
 def test_lychrel_num_193_is_8(self):
     self.assertEqual(8, lychrel.lychrel_num(193, 10))
Пример #7
0
 def test_lychrel_num_12_is_1(self):
    self.assertEqual(1, lychrel.lychrel_num(12, 10))
Пример #8
0
 def test_lychrel_num_11_is_0(self):
     self.assertEqual(0, lychrel.lychrel_num(11, 10))
Пример #9
0
 def test_lychrel_num_12_is_1(self):
     self.assertEqual(1, lychrel.lychrel_num(12, 10))
Пример #10
0
 def test_lychrel_num_1011_is_2(self):
     self.assertEqual(2, lychrel.lychrel_num(0b1011, 2))
Пример #11
0
 def test_lychrel_num_10100_is_2(self):
     self.assertEqual(5, lychrel.lychrel_num(0b10100, 2))
Пример #12
0
 def test_lychrel_num_1000_is_1(self):
     self.assertEqual(1, lychrel.lychrel_num(0b100, 2))
Пример #13
0
 def test_lychrel_num_BF_is_2(self):
     self.assertEqual(8, lychrel.lychrel_num(0xBF, 16))
Пример #14
0
 def test_lychrel_num_1F_is_2(self):
     self.assertEqual(2, lychrel.lychrel_num(0x1F, 16))
Пример #15
0
 def test_lychrel_num_1011_is_2(self):
    self.assertEqual(2, lychrel.lychrel_num(0b1011, 2))
Пример #16
0
 def test_lychrel_num_11_is_0(self):
    self.assertEqual(0, lychrel.lychrel_num(11, 10))
Пример #17
0
 def test_lychrel_num_10100_is_2(self):
    self.assertEqual(5, lychrel.lychrel_num(0b10100, 2))
Пример #18
0
 def test_lychrel_num_39_is_2(self):
     self.assertEqual(2, lychrel.lychrel_num(39, 10))