Improve coverage

This commit is contained in:
Patrick Pelissier committed 2018-02-05 22:28:35 +01:00
1 parent c97a68029b
commit 86dfad860e
1 file changed
+9
+9
View File
@@ -99,6 +99,15 @@ static void test(void)
assert(false);
}
ilist_tname_push_back (list, &x3);
assert (ilist_tname_size (list) == 1);
ilist_tname_push_front (list, &x1);
assert (ilist_tname_size (list) == 2);
ilist_tname_push_after (&x1, &x2);
assert (ilist_tname_size (list) == 3);
assert (ilist_tname_front (list)->n == 1);
assert (ilist_tname_back (list)->n == 3);
ilist_tname_clear(list);
}