Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
girara
Commits
a5554106
Commit
a5554106
authored
May 06, 2018
by
Sebastian Ramacher
Browse files
Remove unused tests
parent
f95f2a76
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/test_datastructures.c
View file @
a5554106
...
@@ -227,30 +227,6 @@ START_TEST(test_datastructures_sorted_list) {
...
@@ -227,30 +227,6 @@ START_TEST(test_datastructures_sorted_list) {
girara_list_free
(
unsorted_list
);
girara_list_free
(
unsorted_list
);
}
END_TEST
}
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
static
void
node_free
(
void
*
data
)
node_free
(
void
*
data
)
{
{
...
...
tests/test_utils.c
View file @
a5554106
...
@@ -256,13 +256,6 @@ START_TEST(test_strings_replace_substrings_3) {
...
@@ -256,13 +256,6 @@ START_TEST(test_strings_replace_substrings_3) {
g_free
(
result
);
g_free
(
result
);
}
END_TEST
}
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
)
Suite
*
suite_utils
(
void
)
{
{
TCase
*
tcase
=
NULL
;
TCase
*
tcase
=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment