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 aa38a8654733d082eb80ae27999e74f073bbd528..b355fe57af7608989f24dd0e472f8955883d1961 100644
(file)
--- a/
tests/hash_plus.cc
+++ b/
tests/hash_plus.cc
@@
-2,7
+2,9
@@
C++ to libhashkit
*/
C++ to libhashkit
*/
-#include <libtest/common.h>
+#include <config.h>
+
+#include <libtest/test.hpp>
#include <cstdio>
#include <cstdlib>
#include <cstdio>
#include <cstdlib>
@@
-10,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)
@@
-59,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;
}