コード例 #1
0
 def test_lazy_cache_3(self):
     l = [0] * 1000001
     l[1] = 1
     lazy_cache(100, 10000, l)
     assert l[5000] == 29
コード例 #2
0
 def test_lazy_cache_3 (self):
     l = [0]*1000001
     l[1] = 1
     lazy_cache(100, 10000, l)
     assert l[5000] == 29
コード例 #3
0
 def test_lazy_cache(self):
     l = [0] * 1000001
     l[1] = 1
     lazy_cache(1, 10, l)
     assert l[5] == 6
コード例 #4
0
 def test_lazy_cache (self):
     l = [0]*1000001
     l[1] = 1
     lazy_cache(1, 10, l)
     assert l[5] == 6