def test6_range7 (self) :
     collatz_eager()
     n = 17
     i = 7
     while i < 100000 :
         c = collatz_computeCycle(i, 1)
         self.assert_(c == n)
         n += 1
         i *= 2
 def test5_huge (self) :
     v = collatz_computeCycle(1200000000, 1)
     self.assert_(v == 109)
 def test5_recursionOutsideCache (self) :
     v = collatz_computeCycle(1819, 1)
     self.assert_(v == 162)
 def test5_million (self) :
 	v = collatz_computeCycle(1000000, 1)
     self.assert_(v == 153)
 def test5_overflow2 (self) :
 	v = collatz_computeCycle(113383, 1)
 	self.assert_(v == 248)
 def test5_overflow3 (self) :
     v = collatz_computeCycle(997823, 1)
     self.assert_(v == 440)
 def test5_overflow1 (self) :
 	v = collatz_computeCycle(159487, 1)
 	self.assert_(v == 184)
    def test5_basicRange (self) :
    	sum_i = 0
        for i in range(1, 11) :
	        sum_i += collatz_computeCycle(i, 1)
    	self.assert_(sum_i == 77)
 def test5_classExample (self) :
     v = collatz_computeCycle(3, 1)
     self.assert_(v == 8)
 def test5_maxInTen (self) :
 	v = collatz_computeCycle(9, 1)
     self.assert_(v == 20)
 def test5_baseCase (self) :
 	v = collatz_computeCycle(1, 1)
     self.assert_(v == 1)