From b3c2d90ba238b1b701a0fcb3b8ab7f32af2935f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 7 Feb 2016 15:22:57 +0100 Subject: [PATCH] tpl: Add missing substr test variants --- tpl/template_funcs_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 3dbfe6204..4ad95b6d2 100644 --- 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