diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-10-15 11:28:23 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-10-30 19:50:51 +0100 |
commit | ce79279bff6e7a1a17070509a039ab635796f129 (patch) | |
tree | bb29003d0b1b155cb8275c66b9f2eb267e58a5bf | |
parent | 52fc5ce38c871e8d75392592919c66ab7f7575dd (diff) |
test: adjust max load factor in test_hashmap_many()
A reimplementation of hashmaps will follow and it will use 0.8.
-rw-r--r-- | src/test/test-hashmap-plain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-hashmap-plain.c b/src/test/test-hashmap-plain.c index ce686b650c..f7917521c5 100644 --- a/src/test/test-hashmap-plain.c +++ b/src/test/test-hashmap-plain.c @@ -699,9 +699,9 @@ static void test_hashmap_many(void) { for (i = 1; i < tests[j].n_entries*3; i++) assert_se(hashmap_contains(h, UINT_TO_PTR(i)) == (i % 3 == 1)); - log_info("%u <= %u * 0.75 = %g", hashmap_size(h), hashmap_buckets(h), hashmap_buckets(h) * 0.75); + log_info("%u <= %u * 0.8 = %g", hashmap_size(h), hashmap_buckets(h), hashmap_buckets(h) * 0.8); - assert_se(hashmap_size(h) <= hashmap_buckets(h) * 0.75); + assert_se(hashmap_size(h) <= hashmap_buckets(h) * 0.8); assert_se(hashmap_size(h) == tests[j].n_entries); while (!hashmap_isempty(h)) { |