shithub: hugo

Download patch

ref: e85b821d3ea8567229badfd67180e94aa69835fe
parent: f223f17c7645ebe6fac14842a5db750df0ce52ba
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Mar 3 16:24:21 EST 2016

tpl: Fix broken chomp test

--- a/tpl/template_funcs_test.go
+++ b/tpl/template_funcs_test.go
@@ -1600,10 +1600,10 @@
 	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)