projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in util/libtest update
[awesomized/libmemcached]
/
tests
/
hash_plus.cc
diff --git
a/tests/hash_plus.cc
b/tests/hash_plus.cc
index e3130786f2606aa9844b8b0ec0fc9ff61df078f1..b355fe57af7608989f24dd0e472f8955883d1961 100644
(file)
--- a/
tests/hash_plus.cc
+++ b/
tests/hash_plus.cc
@@
-12,6
+12,8
@@
#include <libhashkit/hashkit.hpp>
#include <libhashkit/hashkit.hpp>
+using namespace libtest;
+
#include "hash_results.h"
static test_return_t exists_test(void *obj)
#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;
}
return TEST_SUCCESS;
}
-static test_return_t digest_test(void *
obj
)
+static test_return_t digest_test(void *)
{
Hashkit hashk;
{
Hashkit hashk;
- uint32_t value;
- (void)obj;
-
- value= hashk.digest("Foo", sizeof("Foo"));
+ test_true(hashk.digest("Foo", sizeof("Foo")));
return TEST_SUCCESS;
}
return TEST_SUCCESS;
}