aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/url.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index 991c6d0d0..879386bba 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -135,10 +135,18 @@ context("URL check functions", function()
{"/foo/../../..", "/"},
{"/foo/../../../ton", "/ton"},
{"////../..", "/"},
+ {"./", ""},
+ {"/./", "/"},
+ {"/./././././././", "/"},
+ {"/", "/"},
+ {"/a/b", "/a/b"},
+ {"/a/b/", "/a/b/"},
+ {"..", "/"},
+ {"/../", "/"},
+ {"../", "/"},
}
for _,v in ipairs(cases) do
- print(v[1])
local buf = ffi.new("uint8_t[?]", #v[1])
local sizbuf = ffi.new("size_t[1]")
ffi.copy(buf, v[1], #v[1])