Commit a5554106 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Remove unused tests

parent f95f2a76
......@@ -227,30 +227,6 @@ START_TEST(test_datastructures_sorted_list) {
girara_list_free(unsorted_list);
} END_TEST
START_TEST(test_datastructures_list_iterator_remove) {
girara_list_t* list = girara_list_new();
for (intptr_t i = 0; i != 10; ++i) {
girara_list_append(list, (void*)i);
}
fail_unless(girara_list_size(list) == 10);
intptr_t next = 0;
GIRARA_LIST_FOREACH(list, intptr_t, iter, data)
fail_unless(next++ == data);
if (data == 5) {
/* this is broken … this will cause an invalid read */
girara_list_remove(list, (void*) data);
}
GIRARA_LIST_FOREACH_END(list, intptr_t, iter, data);
for (intptr_t s = 0; s != 5; ++s) {
fail_unless((intptr_t)girara_list_nth(list, s) == s);
}
for (intptr_t s = 5; s != 9; ++s) {
fail_unless((intptr_t)girara_list_nth(list, s) == s + 1);
}
} END_TEST
static void
node_free(void* data)
{
......
......@@ -256,13 +256,6 @@ START_TEST(test_strings_replace_substrings_3) {
g_free(result);
} END_TEST
START_TEST(test_strings_replace_substrings_4) {
char* result = girara_replace_substring("test test", "t", "es");
fail_unless(result != NULL);
fail_unless(strncmp(result, "eseses eseses", 14) == 0);
g_free(result);
} END_TEST
Suite* suite_utils(void)
{
TCase* tcase = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment