tests.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. // Any copyright is dedicated to the Public Domain.
  2. // https://creativecommons.org/publicdomain/zero/1.0/
  3. // null input.
  4. null null
  5. // Mixed case.
  6. COM null
  7. example.COM example.com
  8. WwW.example.COM example.com
  9. // Leading dot.
  10. .com null
  11. .example null
  12. .example.com null
  13. .example.example null
  14. // Unlisted TLD.
  15. example null
  16. example.example example.example
  17. b.example.example example.example
  18. a.b.example.example example.example
  19. // Listed, but non-Internet, TLD.
  20. //local null
  21. //example.local null
  22. //b.example.local null
  23. //a.b.example.local null
  24. // TLD with only 1 rule.
  25. biz null
  26. domain.biz domain.biz
  27. b.domain.biz domain.biz
  28. a.b.domain.biz domain.biz
  29. // TLD with some 2-level rules.
  30. com null
  31. example.com example.com
  32. b.example.com example.com
  33. a.b.example.com example.com
  34. uk.com null
  35. example.uk.com example.uk.com
  36. b.example.uk.com example.uk.com
  37. a.b.example.uk.com example.uk.com
  38. test.ac test.ac
  39. // TLD with only 1 (wildcard) rule.
  40. mm null
  41. c.mm null
  42. b.c.mm b.c.mm
  43. a.b.c.mm b.c.mm
  44. // More complex TLD.
  45. jp null
  46. test.jp test.jp
  47. www.test.jp test.jp
  48. ac.jp null
  49. test.ac.jp test.ac.jp
  50. www.test.ac.jp test.ac.jp
  51. kyoto.jp null
  52. test.kyoto.jp test.kyoto.jp
  53. ide.kyoto.jp null
  54. b.ide.kyoto.jp b.ide.kyoto.jp
  55. a.b.ide.kyoto.jp b.ide.kyoto.jp
  56. c.kobe.jp null
  57. b.c.kobe.jp b.c.kobe.jp
  58. a.b.c.kobe.jp b.c.kobe.jp
  59. city.kobe.jp city.kobe.jp
  60. www.city.kobe.jp city.kobe.jp
  61. // TLD with a wildcard rule and exceptions.
  62. ck null
  63. test.ck null
  64. b.test.ck b.test.ck
  65. a.b.test.ck b.test.ck
  66. www.ck www.ck
  67. www.www.ck www.ck
  68. // US K12.
  69. us null
  70. test.us test.us
  71. www.test.us test.us
  72. ak.us null
  73. test.ak.us test.ak.us
  74. www.test.ak.us test.ak.us
  75. k12.ak.us null
  76. test.k12.ak.us test.k12.ak.us
  77. www.test.k12.ak.us test.k12.ak.us
  78. // IDN labels.
  79. 食狮.com.cn 食狮.com.cn
  80. 食狮.公司.cn 食狮.公司.cn
  81. www.食狮.公司.cn 食狮.公司.cn
  82. shishi.公司.cn shishi.公司.cn
  83. 公司.cn null
  84. 食狮.中国 食狮.中国
  85. www.食狮.中国 食狮.中国
  86. shishi.中国 shishi.中国
  87. 中国 null
  88. // Same as above, but punycoded.
  89. xn--85x722f.com.cn xn--85x722f.com.cn
  90. xn--85x722f.xn--55qx5d.cn xn--85x722f.xn--55qx5d.cn
  91. www.xn--85x722f.xn--55qx5d.cn xn--85x722f.xn--55qx5d.cn
  92. shishi.xn--55qx5d.cn shishi.xn--55qx5d.cn
  93. xn--55qx5d.cn null
  94. xn--85x722f.xn--fiqs8s xn--85x722f.xn--fiqs8s
  95. www.xn--85x722f.xn--fiqs8s xn--85x722f.xn--fiqs8s
  96. shishi.xn--fiqs8s shishi.xn--fiqs8s
  97. xn--fiqs8s null