assert.Len
TIL that you can replace
assert.Equal(t, 3, len(someSlice))
with
assert.Len(t, someSlice, 3)
Why they mix up which is the expected param is beyond me, but otherwise I like not having to add the len()
.
TIL that you can replace
assert.Equal(t, 3, len(someSlice))
with
assert.Len(t, someSlice, 3)
Why they mix up which is the expected param is beyond me, but otherwise I like not having to add the len()
.