[cig-commits] commit: Increased collision threshold.
Mercurial
hg at geodynamics.org
Tue Mar 23 10:35:05 PDT 2010
changeset: 782:b9321d904f07
branch: 1.4.x
user: JericoRevote
date: Mon Feb 22 10:51:19 2010 +1100
files: Base/Container/tests/HashTableSuite.c
description:
Increased collision threshold.
diff -r 8431712d6632 -r b9321d904f07 Base/Container/tests/HashTableSuite.c
--- a/Base/Container/tests/HashTableSuite.c Thu Feb 18 16:17:11 2010 +1100
+++ b/Base/Container/tests/HashTableSuite.c Mon Feb 22 10:51:19 2010 +1100
@@ -223,7 +223,7 @@ void HashTableSuite_TestInsertPointers(
/* This is a basic check that the number of collisions was within reason. Perhaps a stricter
* mathematical calc should really be performed here */
/* Hash table has 255 places, only inserted 100 entries, therefore not many collisions expected */
- pcu_check_true( sum <= (int)(data->ptrTable->count * 0.3) );
+ pcu_check_true( sum <= (int)(data->ptrTable->count * 0.4) );
/* Now parse the tree, and check the actual entries - note they won't necessarily be in same 'order'
* while being parsed */
More information about the CIG-COMMITS
mailing list