summaryrefslogtreecommitdiffstats
path: root/domain-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'domain-test.c')
-rw-r--r--domain-test.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/domain-test.c b/domain-test.c
new file mode 100644
index 0000000..ab02943
--- /dev/null
+++ b/domain-test.c
@@ -0,0 +1,19 @@
+#include "util.h"
+
+int main(int argc, char *argv[]) {
+ gchar *s;
+
+ g_message("host name: %s", s = flx_get_host_name());
+ g_free(s);
+
+ g_message("%s", s = flx_normalize_name("foo.foo."));
+ g_free(s);
+
+ g_message("%s", s = flx_normalize_name("foo.foo."));
+ g_free(s);
+
+
+ g_message("%i", flx_domain_equal("\\aaa bbb\\.cccc\\\\.dee.fff.", "aaa\\ bbb\\.cccc\\\\.dee.fff"));
+
+ return 0;
+}