Timm Bäder
662059d18a
tests: Don't compare strings by pointer
...
clang complains about this in the form of
<source>:6:9: warning: result of comparison against a string literal is
unspecified (use an explicit string comparison function instead)
if (f == (void *)"a") {
^ ~~~~~~~~~~~
Use variables for the strings instead, which should have the same
address.
2020-03-05 09:39:33 +01:00
Philip Withnall
2cd26714e5
tests: Add tests to ensure g_[s]list_sort() are stable sorts
...
Given that we guarantee it in the API…
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=508976
2017-11-28 14:11:30 +00:00
Philip Withnall
a2cf4806a4
tests: Add tests for g_slist_copy() and g_slist_copy_deep()
...
This gives us 100% coverage of GSList (when running `make lcov`).
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=787581
2017-09-13 13:37:13 +01:00
Philip Withnall
f1eeb7cf8c
tests: Fix GSList test to not dereference off the end of an array
...
This looks like a typo or copypasta error. As spotted by cppcheck, which
is the code analysis tool GLib deserves, but not the one it needs right
now.
2016-08-13 10:29:31 +02:00
Matthias Clasen
823e32655e
Add a few more tests
...
This brings test coverage for glist.c and glist.c to the
coveted 100% lines mark.
2011-10-03 23:55:02 -04:00
Matthias Clasen
123ba622d3
Add more list tests
2010-07-05 23:13:18 -04:00
Matthias Clasen
5123bc69e7
Move slist tests to the test framework
2010-07-05 23:13:18 -04:00