Explorar el Código

Use a smaller number of trials, and a larger error rate on the large test

dstromberg hace 14 años
padre
commit
f3eac0c4ea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test-bloom-filter

+ 1 - 1
test-bloom-filter

@@ -91,7 +91,7 @@ def main():
 
 	all_good &= test(states, trials=100000, error_rate=0.01)
 
-	all_good &= test(random_content, trials=10000000, error_rate=0.001)
+	all_good &= test(random_content, trials=1000000, error_rate=0.1)
 
 	if all_good:
 		sys.stderr.write('%s: All tests passed\n' % sys.argv[0])