From: Vsevolod Stakhov Date: Tue, 22 Dec 2020 17:23:59 +0000 (+0000) Subject: [Minor] Add a path test X-Git-Tag: 2.7~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92bc01e5fe75d64a1b2062fd720f85245063b1e6;p=thirdparty%2Frspamd.git [Minor] Add a path test --- diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua index bd5fc062c1..97eda91c6a 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])