Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2015-01-21 00:30:52 +0300
committerbep <bjorn.erik.pedersen@gmail.com>2015-01-21 00:31:05 +0300
commitd897b1e8a7c537004c6332d1935862a9fb87318a (patch)
treec87c4ade0c0382340c3f9a47e63d9e57c92a8ff8
parent932214d72509d499f48d0f98c1d128e9fc9c7e10 (diff)
Add missing assertion to trim-test
-rw-r--r--tpl/template_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/template_test.go b/tpl/template_test.go
index 8b5f46170..96bca3c02 100644
--- 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{}, " ")