From: Lennart Poettering Date: Wed, 4 Jan 2006 12:51:32 +0000 (+0000) Subject: improve strlst test X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=bbe31b25f424b91eebbc2706def837429a3d187a;p=catta improve strlst test git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1054 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-common/strlst-test.c b/avahi-common/strlst-test.c index 3cdcb12..71f748d 100644 --- a/avahi-common/strlst-test.c +++ b/avahi-common/strlst-test.c @@ -41,7 +41,10 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { a = avahi_string_list_add(a, "start"); a = avahi_string_list_add(a, "foo=99"); a = avahi_string_list_add(a, "bar"); + a = avahi_string_list_add(a, ""); + a = avahi_string_list_add(a, ""); a = avahi_string_list_add(a, "quux"); + a = avahi_string_list_add(a, ""); a = avahi_string_list_add_arbitrary(a, (const uint8_t*) "null\0null", 9); a = avahi_string_list_add_printf(a, "seven=%i %c", 7, 'x'); a = avahi_string_list_add_pair(a, "blubb", "blaa"); @@ -71,7 +74,7 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { assert(avahi_string_list_parse(data, size, &b) == 0); - assert(avahi_string_list_equal(a, b)); + printf("equal: %i\n", avahi_string_list_equal(a, b)); t = avahi_string_list_to_string(b); printf("--%s--\n", t);