summaryrefslogtreecommitdiffstats
path: root/avahi-common/domain-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common/domain-test.c')
-rw-r--r--avahi-common/domain-test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/avahi-common/domain-test.c b/avahi-common/domain-test.c
index f1313cb..279be72 100644
--- a/avahi-common/domain-test.c
+++ b/avahi-common/domain-test.c
@@ -110,5 +110,12 @@ int main(int argc, char *argv[]) {
assert(avahi_is_valid_host_name("sfooo."));
assert(avahi_is_valid_host_name("sfooo"));
+ assert(avahi_is_valid_domain_name("."));
+ assert(avahi_is_valid_domain_name(""));
+
+ assert(avahi_normalize_name(".", t, sizeof(t)));
+ assert(avahi_normalize_name("", t, sizeof(t)));
+
+
return 0;
}