def test_cache_4 (self) : z = collatz_cache(555555) self.assert_(z == 147)
def test_cache_2 (self) : z = collatz_cache(999999) self.assert_(z == 259)
def test_cache_3 (self) : z = collatz_cache(666) self.assert_(z == 114)
def test_cache_4(self): tmp_length, tmp_small, tmp_large = collatz_cache(225000, 725000) self.assertEqual(tmp_length, 509) self.assertEqual(tmp_small, 230001) self.assertEqual(tmp_large, 720000)
def test_cache_1 (self) : z = collatz_cache(69) self.assert_(z == 15)
def test_cache_3(self): tmp_length, tmp_small, tmp_large = collatz_cache(1, 1000000) self.assertEqual(tmp_length, 525) self.assertEqual(tmp_small, 1) self.assertEqual(tmp_large, 1000000)
def test_cache_2(self): tmp_length, tmp_small, tmp_large = collatz_cache(500000, 500000) self.assertEqual(tmp_length, 1) self.assertEqual(tmp_small, 1000000) self.assertEqual(tmp_large, 0)
def test_cache_3(self): v = collatz_cache(871) self.assertEqual(v, 179)
def test_cache_2(self): v = collatz_cache(9) self.assertEqual(v, 20)
def test_cache_1(self): v = collatz_cache(27) self.assertEqual(v, 112)