Exemplo n.º 1
0
 def test_cycle_length_3(self):
     v = compute_cycle_length(10)
     self.assertEqual(v, 7)
Exemplo n.º 2
0
 def test_cycle_length_5(self):
     v = compute_cycle_length(999999)
     self.assertEqual(v, 259)
Exemplo n.º 3
0
 def test_cycle_length_1(self):
     v = compute_cycle_length(1)
     self.assertEqual(v, 1)
Exemplo n.º 4
0
 def test_cycle_length_2(self):
     v = compute_cycle_length(2)
     self.assertEqual(v, 2)
Exemplo n.º 5
0
 def test_compute_cycle_length_3 (self) :
     v = compute_cycle_length(3)
     self.assert_(v == 8)
Exemplo n.º 6
0
 def test_compute_cycle_length_4 (self) :
     v = compute_cycle_length(100000)
     self.assert_(v == 129)
Exemplo n.º 7
0
 def test_compute_cycle_length_2 (self) :
     v = compute_cycle_length(2)
     self.assert_(v == 2)
Exemplo n.º 8
0
 def test_compute_cycle_length_1 (self) :
     v = compute_cycle_length(1)
     self.assert_(v == 1)
 def test_compute_cycle_length_3(self):
     x = compute_cycle_length(51)
     self.assertEqual(x, 25)
 def test_compute_cycle_length_2(self):
     x = compute_cycle_length(500)
     self.assertEqual(x, 111)
 def test_compute_cycle_length_1(self):
     x = compute_cycle_length(9)
     self.assertEqual(x, 20)