From 39a452a4c7bc4705af455d1dd2a77c6cd56bf96d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 21 Jul 2016 21:03:44 +0200 Subject: [PATCH] Add "missing slice" to the Params test See #2249 --- hugolib/shortcode_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index cd2d9f7a5..9e12045c3 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -149,9 +149,11 @@ func TestNestedNamedMissingParam(t *testing.T) { tem := tpl.New() tem.AddInternalShortcode("acc.html", `
{{ .Inner }}
`) tem.AddInternalShortcode("div.html", `
{{ .Inner }}
`) + tem.AddInternalShortcode("div2.html", `
{{ .Inner }}
`) + CheckShortCodeMatch(t, - `{{% acc %}}{{% div %}}{{% /div %}}{{% /acc %}}`, - "
\n
", tem) + `{{% acc %}}{{% div %}}d1{{% /div %}}{{% div2 %}}d2{{% /div2 %}}{{% /acc %}}`, + "
\n
", tem) } func TestIsNamedParamsSC(t *testing.T) {