Beispiel #1
0
 def test_lychrel_step_10110_is_100011(self):
    self.assertEqual(0b100011, lychrel.lychrel_step(0b10110, 2))
Beispiel #2
0
 def test_lychrel_step_2F_is_121(self):
    self.assertEqual(0x121, lychrel.lychrel_step(0x2F, 16))
Beispiel #3
0
 def test_lychrel_step_BF_is_1BA(self):
    self.assertEqual(0x1BA, lychrel.lychrel_step(0xBF, 16))
Beispiel #4
0
 def test_lychrel_step_39_is_132(self):
    self.assertEqual(132, lychrel.lychrel_step(39, 10))
Beispiel #5
0
 def test_lychrel_step_1A_is_BB(self):
    self.assertEqual(0xBB, lychrel.lychrel_step(0x1A, 16))
Beispiel #6
0
 def test_lychrel_step_121_is_242(self):
    self.assertEqual(242, lychrel.lychrel_step(121, 10))
Beispiel #7
0
 def test_lychrel_step_74_is_121(self):
    self.assertEqual(121, lychrel.lychrel_step(74, 10))
Beispiel #8
0
 def test_lychrel_step_10110_is_100011(self):
     self.assertEqual(0b100011, lychrel.lychrel_step(0b10110, 2))
Beispiel #9
0
 def test_lychrel_step_63_is_99(self):
    self.assertEqual(99, lychrel.lychrel_step(63, 10))
Beispiel #10
0
 def test_lychrel_step_2F_is_121(self):
     self.assertEqual(0x121, lychrel.lychrel_step(0x2F, 16))
Beispiel #11
0
 def test_lychrel_step_BF_is_1BA(self):
     self.assertEqual(0x1BA, lychrel.lychrel_step(0xBF, 16))
Beispiel #12
0
 def test_lychrel_step_1A_is_BB(self):
     self.assertEqual(0xBB, lychrel.lychrel_step(0x1A, 16))
Beispiel #13
0
 def test_lychrel_step_39_is_132(self):
     self.assertEqual(132, lychrel.lychrel_step(39, 10))
Beispiel #14
0
 def test_lychrel_step_74_is_121(self):
     self.assertEqual(121, lychrel.lychrel_step(74, 10))
Beispiel #15
0
 def test_lychrel_step_121_is_242(self):
     self.assertEqual(242, lychrel.lychrel_step(121, 10))
Beispiel #16
0
 def test_lychrel_step_63_is_99(self):
     self.assertEqual(99, lychrel.lychrel_step(63, 10))