diff options
Diffstat (limited to 'avahi-core/domain-test.c')
-rw-r--r-- | avahi-core/domain-test.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/avahi-core/domain-test.c b/avahi-core/domain-test.c index 7f6bd7b..240f960 100644 --- a/avahi-core/domain-test.c +++ b/avahi-core/domain-test.c @@ -34,11 +34,15 @@ int main(int argc, char *argv[]) { g_message("%s", s = avahi_normalize_name("foo.foo.")); g_free(s); - g_message("%s", s = avahi_normalize_name("foo.foo.")); + g_message("%s", s = avahi_normalize_name("\\f\\o\\\\o\\..\\f\\ \\o\\o.")); g_free(s); - g_message("%i", avahi_domain_equal("\\aaa bbb\\.cccc\\\\.dee.fff.", "aaa\\ bbb\\.cccc\\\\.dee.fff")); + g_message("%i", avahi_domain_equal("\\A", "a")); + g_message("%i", avahi_domain_equal("a", "aaa")); + + g_message("%u = %u", avahi_domain_hash("\\Aaaab\\\\."), avahi_domain_hash("aaaa\\b\\\\")); + return 0; } |