X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhash_plus.cc;h=257a42ec643f2170c07248465b70281e088ffb81;hb=6cca0302addd6ea9714f2b8deff2c48aab3002ef;hp=778ec220c4cb30bfecebc323abdf0a843b2e641d;hpb=2674b74b067e8578bf323445a88f46bb3fa18ffd;p=awesomized%2Flibmemcached diff --git a/tests/hash_plus.cc b/tests/hash_plus.cc index 778ec220..257a42ec 100644 --- a/tests/hash_plus.cc +++ b/tests/hash_plus.cc @@ -158,7 +158,7 @@ static test_return_t set_function_test(void *) hash_val= hashk.digest(*ptr, strlen(*ptr)); char buffer[1024]; snprintf(buffer, sizeof(buffer), "%lu %lus %s", (unsigned long)list[x], (unsigned long)hash_val, libhashkit_string_hash(*algo)); - test_true_got(list[x] == hash_val, buffer); + test_compare(list[x], hash_val); } } @@ -171,7 +171,7 @@ static test_return_t set_distribution_function_test(void *) hashkit_return_t rc; rc= hashk.set_distribution_function(HASHKIT_HASH_CUSTOM); - test_true_got(rc == HASHKIT_FAILURE or rc == HASHKIT_INVALID_ARGUMENT, hashkit_strerror(NULL, rc)); + test_true(rc == HASHKIT_FAILURE or rc == HASHKIT_INVALID_ARGUMENT); test_compare(HASHKIT_SUCCESS, hashk.set_distribution_function(HASHKIT_HASH_JENKINS)); @@ -213,7 +213,7 @@ collection_st collection[] ={ {0, 0, 0, 0} }; -void get_world(Framework *world) +void get_world(libtest::Framework* world) { - world->collections= collection; + world->collections(collection); }