summaryrefslogtreecommitdiffstats
path: root/avahi-core/domain-test.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-05-13 23:18:13 +0000
committerLennart Poettering <lennart@poettering.net>2005-05-13 23:18:13 +0000
commita3596a5e3ec4937a220e6e60218639e2aba82701 (patch)
treeebe0ef5fe715ba2fd8f604935d50153958b23e28 /avahi-core/domain-test.c
parentefbf5f40328344aff24d55ddb79cd71759a605a4 (diff)
* utf-8 collation of domain names
* case insensitive comparison of domain names git-svn-id: file:///home/lennart/svn/public/avahi/trunk@71 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/domain-test.c')
-rw-r--r--avahi-core/domain-test.c8
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;
}