diff --git a/webserver/webserver_test.go b/webserver/webserver_test.go index e9e0185..007816c 100644 --- a/webserver/webserver_test.go +++ b/webserver/webserver_test.go @@ -98,13 +98,20 @@ func TestParseSplit(t *testing.T) { a := []struct{ p, a, b, c string }{ {"", "", "", ""}, {"/a", "/a", "", ""}, + {"/.a", "", ".a", ""}, + {"/.a/", "", ".a", "/"}, + {"/.a/b", "", ".a", "/b"}, + {"/.a/b/", "", ".a", "/b/"}, + {"/.a/b/c", "", ".a", "/b/c"}, + {"/.a/b/c", "", ".a", "/b/c"}, + {"/.a/b/.c/", "", ".a", "/b/.c/"}, {"/a/.b", "/a", ".b", ""}, {"/a/.b/", "/a", ".b", "/"}, {"/a/.b/c", "/a", ".b", "/c"}, {"/a/.b/c/", "/a", ".b", "/c/"}, {"/a/.b/c/d", "/a", ".b", "/c/d"}, {"/a/.b/c/d/", "/a", ".b", "/c/d/"}, - {"/a/.b/c/d./", "/a", ".b", "/c/d./"}, + {"/a/.b/c/.d/", "/a", ".b", "/c/.d/"}, } for _, pabc := range a {