Import/Merge of libtest latest.
[m6w6/libmemcached] / tests / hash_plus.cc
index 9cb4b384e777e68ea011a495925798751c40f281..19c77c3822e11f92281a918f60df6273d2d495e0 100644 (file)
@@ -158,7 +158,7 @@ static test_return_t set_function_test(void *)
       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);
     }
   }
 
@@ -171,7 +171,7 @@ static test_return_t set_distribution_function_test(void *)
   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));