aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-22 17:23:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-22 17:23:59 +0000
commit92bc01e5fe75d64a1b2062fd720f85245063b1e6 (patch)
treee576e3cd042357cfd7773d7fe036ac9c33617be2 /test
parentb48fa1b0535ece50118827de341c673d40186346 (diff)
downloadrspamd-92bc01e5fe75d64a1b2062fd720f85245063b1e6.tar.gz
rspamd-92bc01e5fe75d64a1b2062fd720f85245063b1e6.zip
[Minor] Add a path test
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/url.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index bd5fc062c..97eda91c6 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -184,10 +184,11 @@ context("URL check functions", function()
{"..", "/"},
{"/../", "/"},
{"../", "/"},
+ {"///foo", "/foo"},
}
for i,v in ipairs(cases) do
- test("Normalize paths " .. i, function()
+ test(string.format("Normalize paths '%s'", v[1]), function()
local buf = ffi.new("uint8_t[?]", #v[1])
local sizbuf = ffi.new("size_t[1]")
ffi.copy(buf, v[1], #v[1])