1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

tests: add partial tests of functions hashtable_set*

This commit is contained in:
Sébastien Helleu
2014-08-14 19:09:27 +02:00
parent 346fb62cf6
commit 328eeee5e1
+15 -1
View File
@@ -123,7 +123,21 @@ TEST(Hashtable, New)
TEST(Hashtable, Set)
{
/* TODO: write tests */
struct t_hashtable *hashtable;
struct t_hashtable_item *item;
const char *value = "this is a string";
hashtable = hashtable_new (32,
WEECHAT_HASHTABLE_STRING,
WEECHAT_HASHTABLE_STRING,
&test_hashtable_hash_key_cb,
&test_hashtable_keycmp_cb);
POINTERS_EQUAL(NULL, hashtable_set_with_size (NULL, NULL, -1, NULL, -1));
POINTERS_EQUAL(NULL, hashtable_set_with_size (NULL, NULL, -1, NULL, -1));
/* TODO: write more tests */
hashtable_free (hashtable);
}
/*