added checks for special .name domain

This commit is contained in:
Tim Ruehsen 2014-04-15 15:02:50 +02:00
parent 41171a949b
commit b8f7a79947
2 changed files with 18 additions and 0 deletions

View File

@ -68,6 +68,15 @@ static void test_psl(void)
{ "www.\345\225\206\346\240\207", 0 },
{ "xn--czr694b", 1 },
{ "www.xn--czr694b", 0 },
// some special test follow ('name' and 'forgot.his.name' are public, but e.g. his.name is not)
{ "name", 1 },
{ ".name", 1 },
{ "his.name", 0 },
{ ".his.name", 0 },
{ "forgot.his.name", 1 },
{ ".forgot.his.name", 1 },
{ "whoever.his.name", 0 },
{ "whoever.forgot.his.name", 0 },
};
unsigned it;
const psl_ctx_t *psl;

View File

@ -66,6 +66,15 @@ static void test_psl(void)
{ "www.xxx.ck", 0 },
{ "\345\225\206\346\240\207", 1 }, // xn--czr694b oder 商标
{ "www.\345\225\206\346\240\207", 0 },
// some special test follow ('name' and 'forgot.his.name' are public, but e.g. his.name is not)
{ "name", 1 },
{ ".name", 1 },
{ "his.name", 0 },
{ ".his.name", 0 },
{ "forgot.his.name", 1 },
{ ".forgot.his.name", 1 },
{ "whoever.his.name", 0 },
{ "whoever.forgot.his.name", 0 },
};
unsigned it;
psl_ctx_t *psl;