X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhash_plus.cc;h=b355fe57af7608989f24dd0e472f8955883d1961;hb=36f67e19846d18ec8d590eeb3fae03930e44ecdb;hp=aa38a8654733d082eb80ae27999e74f073bbd528;hpb=57ccacee54e77955ebe20d52e06934850e182adc;p=m6w6%2Flibmemcached diff --git a/tests/hash_plus.cc b/tests/hash_plus.cc index aa38a865..b355fe57 100644 --- a/tests/hash_plus.cc +++ b/tests/hash_plus.cc @@ -2,7 +2,9 @@ C++ to libhashkit */ -#include +#include + +#include #include #include @@ -10,6 +12,8 @@ #include +using namespace libtest; + #include "hash_results.h" static test_return_t exists_test(void *obj) @@ -59,13 +63,10 @@ static test_return_t assign_test(void *obj) return TEST_SUCCESS; } -static test_return_t digest_test(void *obj) +static test_return_t digest_test(void *) { Hashkit hashk; - uint32_t value; - (void)obj; - - value= hashk.digest("Foo", sizeof("Foo")); + test_true(hashk.digest("Foo", sizeof("Foo"))); return TEST_SUCCESS; }