mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Add missing assertion to trim-test
This commit is contained in:
parent
932214d725
commit
d897b1e8a7
1 changed files with 1 additions and 0 deletions
|
@ -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{}, " ")
|
||||
|
|
Loading…
Reference in a new issue