aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-11-15 20:52:39 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-11-15 20:52:39 +0000
commit8a5c5410e696273fb161d762e369562ff9a53e25 (patch)
treea669908792084546b2cee0e90cd34f95d9d531de /test
parent5cb3ea31b18406ff386d9301fec59f5e2f227327 (diff)
downloadrspamd-8a5c5410e696273fb161d762e369562ff9a53e25.tar.gz
rspamd-8a5c5410e696273fb161d762e369562ff9a53e25.zip
[Test] Fix test tlds
Diffstat (limited to 'test')
-rw-r--r--test/functional/lua/tlds.lua1
-rw-r--r--test/lua/unit/test_tld.dat13
2 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/lua/tlds.lua b/test/functional/lua/tlds.lua
index 0908001da..24836b393 100644
--- a/test/functional/lua/tlds.lua
+++ b/test/functional/lua/tlds.lua
@@ -39,6 +39,7 @@ rspamd_config:register_symbol({
return
end
local u = rspamd_url.create(pool, p .. d)
+ assert(u, "cannot parse string: " .. p .. d)
test = u:get_tld()
if (test ~= d) then
local opt = string.format('url.create:p=%s;d=%s;got=%s', p, d, test)
diff --git a/test/lua/unit/test_tld.dat b/test/lua/unit/test_tld.dat
index c1cd41723..5a804f4a9 100644
--- a/test/lua/unit/test_tld.dat
+++ b/test/lua/unit/test_tld.dat
@@ -4,3 +4,16 @@ net
рф
za.org
xn--p1ai
+ac
+b.br
+co
+co.za
+in.net
+star.kawasaki.jp
+net.in
+star.nom.br
+org.ac
+ru.com
+za.net
+za.org
+org.za