Add tests for cutToFirstSignificantSubdomain when we don't send a scheme

This commit is contained in:
Guillaume Tassery 2019-04-26 11:26:48 +07:00
parent d1bca5b6a4
commit b54855addb
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,8 @@ example.com
example.com
example.com
example.com
example.com
example.com
====CUT WWW====
http://example.com
http://example.com:1234

View File

@ -73,6 +73,8 @@ SELECT cutToFirstSignificantSubdomain('http://www.example.com/a/b/c?a=b');
SELECT cutToFirstSignificantSubdomain('http://www.example.com/a/b/c?a=b#d=f');
SELECT cutToFirstSignificantSubdomain('http://paul@www.example.com/a/b/c?a=b#d=f');
SELECT cutToFirstSignificantSubdomain('//paul@www.example.com/a/b/c?a=b#d=f');
SELECT cutToFirstSignificantSubdomain('www.example.com');
SELECT cutToFirstSignificantSubdomain('example.com');
SELECT '====CUT WWW====';
SELECT cutWWW('http://www.example.com');