tpl: Fix broken chomp test
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 3 Mar 2016 20:24:21 +0000 (21:24 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 3 Mar 2016 20:24:21 +0000 (21:24 +0100)
tpl/template_funcs_test.go

index 433d23b5f76231d3a1119f824bb6cdbad0c91ae4..1104824d99e67b1f7b3ccd9603d2e935f0f7e2ce 100644 (file)
@@ -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)