From 1c90fac381d6703ac3f0d28caace88d9d92080d6 Mon Sep 17 00:00:00 2001 From: Tim Ruehsen Date: Sat, 22 Mar 2014 21:36:02 +0100 Subject: [PATCH] added test with utf-8 domain --- tests/test-is-public-inline.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-is-public-inline.c b/tests/test-is-public-inline.c index 62d0c42..e3430da 100644 --- a/tests/test-is-public-inline.c +++ b/tests/test-is-public-inline.c @@ -42,6 +42,8 @@ static int static void test_psl(void) { + // punycode generation: idn 商标 + // octal code generation: echo -n "商标" | od -b static const struct test_data { const char *domain; @@ -58,6 +60,10 @@ static void test_psl(void) { "abc.www.ck", 0 }, { "xxx.ck", 1 }, { "www.xxx.ck", 0 }, + { "\345\225\206\346\240\207", 1 }, // xn--czr694b oder 商标 + { "www.\345\225\206\346\240\207", 0 }, +// { "xn--czr694b", 1 }, +// { "www.xn--czr694b", 1 }, }; unsigned it;