try fix tests

This commit is contained in:
Bharat Nallan Chakravarthy 2023-09-04 13:38:37 -07:00
parent 0342e80405
commit 2efa7a51ff
5 changed files with 18 additions and 18 deletions

View File

@ -26,11 +26,11 @@ select cutToFirstSignificantSubdomainCustom('foo.kernel.biz.ss', 'public_suffix_
kernel.biz.ss
select '-- difference';
-- difference
-- biz.ss is not in the default TLD list, hence:
select cutToFirstSignificantSubdomain('foo.kernel.biz.ss'); -- biz.ss
biz.ss
select cutToFirstSignificantSubdomainCustom('foo.kernel.biz.ss', 'public_suffix_list'); -- kernel.biz.ss
kernel.biz.ss
-- dev.ss is not in the default TLD list, hence:
select cutToFirstSignificantSubdomain('foo.kernel.dev.ss'); -- dev.ss
dev.ss
select cutToFirstSignificantSubdomainCustom('foo.kernel.dev.ss', 'public_suffix_list'); -- kernel.dev.ss
dev.ss
select '-- 3+level';
-- 3+level
select cutToFirstSignificantSubdomainCustom('xx.blogspot.co.at', 'public_suffix_list'); -- xx.blogspot.co.at
@ -115,11 +115,11 @@ select cutToFirstSignificantSubdomainCustomRFC('foo.kernel.biz.ss', 'public_suff
kernel.biz.ss
select '-- difference';
-- difference
-- biz.ss is not in the default TLD list, hence:
select cutToFirstSignificantSubdomainRFC('foo.kernel.biz.ss'); -- biz.ss
biz.ss
select cutToFirstSignificantSubdomainCustomRFC('foo.kernel.biz.ss', 'public_suffix_list'); -- kernel.biz.ss
kernel.biz.ss
-- dev.ss is not in the default TLD list, hence:
select cutToFirstSignificantSubdomainRFC('foo.kernel.dev.ss'); -- dev.ss
dev.ss
select cutToFirstSignificantSubdomainCustomRFC('foo.kernel.dev.ss', 'public_suffix_list'); -- kernel.dev.ss
dev.ss
select '-- 3+level';
-- 3+level
select cutToFirstSignificantSubdomainCustomRFC('xx.blogspot.co.at', 'public_suffix_list'); -- xx.blogspot.co.at

View File

@ -18,9 +18,9 @@ select firstSignificantSubdomainCustom{{ suffix }}('foo.kernel.biz.ss', 'public_
select cutToFirstSignificantSubdomainCustom{{ suffix }}('foo.kernel.biz.ss', 'public_suffix_list'); -- kernel.biz.ss
select '-- difference';
-- biz.ss is not in the default TLD list, hence:
select cutToFirstSignificantSubdomain{{ suffix }}('foo.kernel.biz.ss'); -- biz.ss
select cutToFirstSignificantSubdomainCustom{{ suffix }}('foo.kernel.biz.ss', 'public_suffix_list'); -- kernel.biz.ss
-- dev.ss is not in the default TLD list, hence:
select cutToFirstSignificantSubdomain{{ suffix }}('foo.kernel.dev.ss'); -- dev.ss
select cutToFirstSignificantSubdomainCustom{{ suffix }}('foo.kernel.dev.ss', 'public_suffix_list'); -- kernel.dev.ss
select '-- 3+level';
select cutToFirstSignificantSubdomainCustom{{ suffix }}('xx.blogspot.co.at', 'public_suffix_list'); -- xx.blogspot.co.at

View File

@ -1 +1 @@
biz.ss kernel.biz.ss
dev.ss kernel.dev.ss

View File

@ -13,9 +13,9 @@ function clickhouse_local()
$CLICKHOUSE_LOCAL "${opts[@]}" "$@"
}
# -- biz.ss is not in the default TLD list, hence:
# -- dev.ss is not in the default TLD list, hence:
clickhouse_local -q "
select
cutToFirstSignificantSubdomain('foo.kernel.biz.ss'),
cutToFirstSignificantSubdomainCustom('foo.kernel.biz.ss', 'public_suffix_list')
cutToFirstSignificantSubdomain('foo.kernel.dev.ss'),
cutToFirstSignificantSubdomainCustom('foo.kernel.dev.ss', 'public_suffix_list')
" |& grep -v -e 'Processing configuration file'