C++ to libhashkit
*/
-#include <config.h>
+#include <mem_config.h>
#include <libtest/test.hpp>
list= hsieh_values;
break;
+ case HASHKIT_HASH_MURMUR3:
+#ifdef WORDS_BIGENDIAN
+ continue;
+#endif
+ list= murmur3_values;
+ break;
case HASHKIT_HASH_MURMUR:
#ifdef WORDS_BIGENDIAN
continue;
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);
}
}
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));
{0, 0, 0, 0}
};
-void get_world(Framework *world)
+void get_world(libtest::Framework* world)
{
- world->collections= collection;
+ world->collections(collection);
}