added checks for special .name domain
This commit is contained in:
parent
41171a949b
commit
b8f7a79947
|
@ -68,6 +68,15 @@ static void test_psl(void)
|
||||||
{ "www.\345\225\206\346\240\207", 0 },
|
{ "www.\345\225\206\346\240\207", 0 },
|
||||||
{ "xn--czr694b", 1 },
|
{ "xn--czr694b", 1 },
|
||||||
{ "www.xn--czr694b", 0 },
|
{ "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;
|
unsigned it;
|
||||||
const psl_ctx_t *psl;
|
const psl_ctx_t *psl;
|
||||||
|
|
|
@ -66,6 +66,15 @@ static void test_psl(void)
|
||||||
{ "www.xxx.ck", 0 },
|
{ "www.xxx.ck", 0 },
|
||||||
{ "\345\225\206\346\240\207", 1 }, // xn--czr694b oder 商标
|
{ "\345\225\206\346\240\207", 1 }, // xn--czr694b oder 商标
|
||||||
{ "www.\345\225\206\346\240\207", 0 },
|
{ "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;
|
unsigned it;
|
||||||
psl_ctx_t *psl;
|
psl_ctx_t *psl;
|
||||||
|
|
Loading…
Reference in New Issue