Exemple #1
0
 def test_eval_1 (self) :
     n = 50000
     preCompArray = [0]*n
     collatz_createCache(50000, preCompArray)
     v = collatz_eval(1, 10, preCompArray)
     self.assert_(v == 20)
Exemple #2
0
 def test_eval_4 (self) :
     n = 50000
     preCompArray = [0]*n
     collatz_createCache(50000, preCompArray)
     v = collatz_eval(900, 1000, preCompArray)
     self.assert_(v == 174)
Exemple #3
0
 def test_eval_5 (self) :
     n = 50000
     preCompArray = [0]*n
     collatz_createCache(50000, preCompArray)
     v = collatz_eval(972699, 998031, preCompArray)
     self.assert_(v == 440)
Exemple #4
0
 def test_eval_3 (self) :
     n = 50000
     preCompArray = [0]*n
     collatz_createCache(50000, preCompArray)
     v = collatz_eval(201, 210, preCompArray)
     self.assert_(v == 89)