X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fhash_plus.cc;h=b355fe57af7608989f24dd0e472f8955883d1961;hb=9cf7ea2836b3ec5cb8b01f2d8399cbe0ae06bf60;hp=e3130786f2606aa9844b8b0ec0fc9ff61df078f1;hpb=50dc8599f105fe915607e6f2d57851fd9acad839;p=m6w6%2Flibmemcached diff --git a/tests/hash_plus.cc b/tests/hash_plus.cc index e3130786..b355fe57 100644 --- a/tests/hash_plus.cc +++ b/tests/hash_plus.cc @@ -12,6 +12,8 @@ #include +using namespace libtest; + #include "hash_results.h" static test_return_t exists_test(void *obj) @@ -61,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; }