diff options
author | bep <bjorn.erik.pedersen@gmail.com> | 2015-05-27 20:41:25 +0200 |
---|---|---|
committer | bep <bjorn.erik.pedersen@gmail.com> | 2015-05-27 20:41:43 +0200 |
commit | be964e95a13bce974e4c7af4118979d6fea71112 (patch) | |
tree | 34b01c835160369afbaf8bcdf2597793e7d617eb /helpers/path_test.go | |
parent | beffe756a91f4c47e8e8fa622b9a52d213a8c821 (diff) |
Never remove trailing slash in RelPermalink
Fixed #1174
Diffstat (limited to 'helpers/path_test.go')
-rw-r--r-- | helpers/path_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/helpers/path_test.go b/helpers/path_test.go index c9b4beac1..cb8714266 100644 --- a/helpers/path_test.go +++ b/helpers/path_test.go @@ -65,6 +65,7 @@ func TestGetRelativePath(t *testing.T) { expect interface{} }{ {filepath.FromSlash("/a/b"), filepath.FromSlash("/a"), filepath.FromSlash("b")}, + {filepath.FromSlash("/a/b/c/"), filepath.FromSlash("/a"), filepath.FromSlash("b/c/")}, {filepath.FromSlash("/c"), filepath.FromSlash("/a/b"), filepath.FromSlash("../../c")}, {filepath.FromSlash("/c"), "", false}, } |