def test_cyclelength_2(self): cache = [0] * 1000000 v = collatz_cyclelength(5, cache) self.assert_(v == 6, v)
def test_cyclelength_3(self): cache = [0] * 1000000 v = collatz_cyclelength(9, cache) self.assert_(v == 20, v)
def test_cyclelength_1(self): cache = [0] * 1000000 v = collatz_cyclelength(22, cache) self.assert_(v == 16, v)