From 7862de91de5d8d8d6e00804f8352bd665d86d202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 13 Dec 2016 00:15:21 +0100 Subject: [PATCH] tpl: Add a querify test case that is actually and URL See #2780 --- tpl/template_funcs_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 7d76da8de..f94ec6a79 100644 --- a/tpl/template_funcs_test.go +++ b/tpl/template_funcs_test.go @@ -129,7 +129,8 @@ modBool: {{modBool 15 3}} mul: {{mul 2 3}} plainify: {{ plainify "Hello world, gophers!" }} pluralize: {{ "cat" | pluralize }} -querify: {{ (querify "foo" 1 "bar" 2 "baz" "with spaces" "qux" "this&that=those") | safeHTML }} +querify 1: {{ (querify "foo" 1 "bar" 2 "baz" "with spaces" "qux" "this&that=those") | safeHTML }} +querify 2: Search readDir: {{ range (readDir ".") }}{{ .Name }}{{ end }} readFile: {{ readFile "README.txt" }} relLangURL: {{ "index.html" | relLangURL }} @@ -199,7 +200,8 @@ modBool: true mul: 6 plainify: Hello world, gophers! pluralize: cats -querify: bar=2&baz=with+spaces&foo=1&qux=this%26that%3Dthose +querify 1: bar=2&baz=with+spaces&foo=1&qux=this%26that%3Dthose +querify 2: Search readDir: README.txt readFile: Hugo Rocks! relLangURL: /hugo/en/index.html