commit 92bc01e: [Minor] Add a path test
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Dec 22 17:28:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-12-22 17:23:59 +0000
URL: https://github.com/rspamd/rspamd/commit/92bc01e5fe75d64a1b2062fd720f85245063b1e6 (HEAD -> master)
[Minor] Add a path test
---
test/lua/unit/url.lua | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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])
More information about the Commits
mailing list