projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
932214d
)
Add missing assertion to trim-test
author
bep
<bjorn.erik.pedersen@gmail.com>
Tue, 20 Jan 2015 21:30:52 +0000
(22:30 +0100)
committer
bep
<bjorn.erik.pedersen@gmail.com>
Tue, 20 Jan 2015 21:31:05 +0000
(22:31 +0100)
tpl/template_test.go
patch
|
blob
|
history
diff --git
a/tpl/template_test.go
b/tpl/template_test.go
index 8b5f4617065dcc796c60a2f2d56661e8ab67b0cd..96bca3c02307b8c3fc9f434cb059f579ee72a6c1 100644
(file)
--- 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{}, " ")