mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Add missing assertion to trim-test
This commit is contained in:
@@ -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{}, " ")
|
||||
|
Reference in New Issue
Block a user