def test_cycleLength_corner1 (self) :
     cycle_length = cycleLength(1, {})
     self.assertTrue(cycle_length == 1)
 def test_cycleLength_corner2 (self) :
     cycle_length = cycleLength(999999, {})
     self.assertTrue(cycle_length == 259)
 def test_cycleLength_1 (self) :
     cycle_length = cycleLength(5, {})
     self.assertTrue(cycle_length == 6)
 def test_cycleLength_2 (self) :
     cycle_length = cycleLength(20, {})
     self.assertTrue(cycle_length == 8)
 def test_cycleLength_2 (self) :
     c = cycleLength(8)
     self.assert_(c == 4)
 def test_cycleLength_3 (self) :
     c = cycleLength(512)
     self.assert_(c == 10)
Exemple #7
0
 def test_cycleLength_3(self):
     c = cycleLength(512)
     self.assert_(c == 10)
 def test_cycleLength_1 (self) :
     c = cycleLength(1)
     self.assert_(c == 1)
Exemple #9
0
 def test_cycleLength_2(self):
     c = cycleLength(8)
     self.assert_(c == 4)
Exemple #10
0
 def test_cycleLength_1(self):
     c = cycleLength(1)
     self.assert_(c == 1)
 def test_cycleLength_3 (self):
     v = cycleLength(10)
     self.assert_(v == 7)
 def test_cycleLength_2 (self):
     v = cycleLength(5)
 	self.assert_(v == 6)
 def test_cycleLength_1 (self):
 	v = cycleLength(1)
 	self.assert_(v == 1)