Add missing assertion to trim-test - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit d897b1e8a7c537004c6332d1935862a9fb87318a
DIR parent 932214d72509d499f48d0f98c1d128e9fc9c7e10
HTML Author: bep <bjorn.erik.pedersen@gmail.com>
Date: Tue, 20 Jan 2015 22:30:52 +0100
Add missing assertion to trim-test
Diffstat:
M tpl/template_test.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
DIR diff --git a/tpl/template_test.go b/tpl/template_test.go
@@ -981,6 +981,7 @@ func TestTrim(t *testing.T) {
v, _ := Trim("1234 my way 13", "123")
assert.Equal(t, "4 my way ", v)
v, _ = Trim(" my way ", " ")
+ assert.Equal(t, "my way", v)
v, _ = Trim(1234, "14")
assert.Equal(t, "23", v)
_, e := Trim(tstNoStringer{}, " ")