mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-15 15:48:57 -04:00
Add missing assertion to trim-test
This commit is contained in:
parent
932214d725
commit
d897b1e8a7
@ -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…
x
Reference in New Issue
Block a user