hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit b3c2d90ba238b1b701a0fcb3b8ab7f32af2935f1
parent 4dcb63c2f65608e443aaf99c16019cd1757ee49e
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sun,  7 Feb 2016 15:22:57 +0100

tpl: Add missing substr test variants

Diffstat:
Mtpl/template_funcs_test.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go
@@ -561,6 +561,9 @@ func TestSubstr(t *testing.T) {
 		{"abcdef", 2.0, 2, "cd"},
 		{"abcdef", 2, 2.0, "cd"},
 		{"ĀĀĀ", 1, 2, "ĀĀ"}, // # issue 1333
+		{"abcdef", "doo", nil, false},
+		{"abcdef", "doo", "doo", false},
+		{"abcdef", 1, "doo", false},
 	} {
 		var result string
 		n = i