diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-02 14:13:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-02 14:13:46 +0000 |
commit | b80ca7eb2fd2b7236e50d2297e42f779902384c2 (patch) | |
tree | 1caf0992637be000068d71b90f098b9946185ad1 /test/lua | |
parent | 2f3618bf805c290c36b893ae48e0a8c59dc3c3de (diff) | |
download | rspamd-b80ca7eb2fd2b7236e50d2297e42f779902384c2.tar.gz rspamd-b80ca7eb2fd2b7236e50d2297e42f779902384c2.zip |
Fix url extraction tests.
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/unit/url.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua index afc4db2f2..9f9643009 100644 --- a/test/lua/unit/url.lua +++ b/test/lua/unit/url.lua @@ -48,14 +48,14 @@ context("URL check functions", function() local cases = { {"test.com text", {"test.com", nil}}, {"mailto:A.User@example.com text", {"example.com", "A.User"}}, - {"http://тест.рф:18 text", {"тест.рф", nil}}, - {"http://user:password@тест.рф:18 text", {"тест.рф", "user"}}, + {"http://Тест.Рф:18 text", {"тест.рф", nil}}, + {"http://user:password@тест2.РФ:18 text", {"тест2.рф", "user"}}, } for _,c in ipairs(cases) do local res = ffi.C.rspamd_url_get_next(pool, c[1], nil) - assert_not_nil(res) + assert_not_nil(res, "cannot parse " .. c[1]) assert_equal(c[2][1], ffi.string(res.host, res.hostlen)) if c[2][2] then |