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