From: Owen Waller Date: Mon, 22 Sep 2014 16:49:39 +0000 (+0100) Subject: Fix: remove the unnecessary dot in an extension X-Git-Tag: v0.13~330 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5906c8652dfb63e9e54b718ea5787c7231816c12;p=brevno-suite%2Fhugo Fix: remove the unnecessary dot in an extension Oops minor typo. The new extension passed to ReplaceExtension should not have a dot in it. The test data bas been updated to reflect this. --- diff --git a/helpers/path_test.go b/helpers/path_test.go index c8729780..e6dc1e76 100644 --- a/helpers/path_test.go +++ b/helpers/path_test.go @@ -86,7 +86,7 @@ func TestReplaceExtension(t *testing.T) { {"banana/pie/index.html", "xml", "index.xml"}, {"../pies/fish/index.html", "xml", "index.xml"}, // but these all fail - {"filename-without-ext", ".ext", "filename-without-an-ext.ext"}, + {"filename-without-an-ext", "ext", "filename-without-an-ext.ext"}, {"/filename-without-an-ext", "ext", "filename-without-an-ext.ext"}, {"/directory/mydir/", "ext", ".ext"}, {"mydir/", "ext", ".ext"},