diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go index 433d23b5f..1104824d9 100644 --- a/tpl/template_funcs_test.go +++ b/tpl/template_funcs_test.go @@ -1600,10 +1600,10 @@ func TestApply(t *testing.T) { noStringers := []interface{}{tstNoStringer{}, tstNoStringer{}} chomped, _ := apply(strings, "chomp", ".") - assert.Equal(t, []interface{}{"a", "b"}, chomped) + assert.Equal(t, []interface{}{template.HTML("a"), template.HTML("b")}, chomped) chomped, _ = apply(strings, "chomp", "c\n") - assert.Equal(t, []interface{}{"c", "c"}, chomped) + assert.Equal(t, []interface{}{template.HTML("c"), template.HTML("c")}, chomped) chomped, _ = apply(nil, "chomp", ".") assert.Equal(t, []interface{}{}, chomped)