Exemplo n.º 1
0
 def testPrimeCount(self):
   intalg.clear_prime_cache()
   prime_counts1 = map(intalg.prime_count_cached, xrange(3000))
   intalg.clear_prime_cache()
   prime_counts2 = map(intalg.prime_count_cached, xrange(3000))
   prime_counts2 = map(intalg.prime_count_cached, xrange(3000))
   # TODO(pts): Add tests for prime_count_lowmem.
   self.assertEquals(prime_counts1, prime_counts2)
Exemplo n.º 2
0
 def testPrimeCount(self):
     intalg.clear_prime_cache()
     prime_counts1 = map(intalg.prime_count_cached, xrange(3000))
     intalg.clear_prime_cache()
     prime_counts2 = map(intalg.prime_count_cached, xrange(3000))
     prime_counts2 = map(intalg.prime_count_cached, xrange(3000))
     # TODO(pts): Add tests for prime_count_lowmem.
     self.assertEquals(prime_counts1, prime_counts2)
Exemplo n.º 3
0
 def tearDown(self):
   intalg.clear_prime_cache()
Exemplo n.º 4
0
 def setUp(self):
   intalg.clear_prime_cache()
Exemplo n.º 5
0
 def tearDown(self):
     intalg.clear_prime_cache()
Exemplo n.º 6
0
 def setUp(self):
     intalg.clear_prime_cache()