testify icon indicating copy to clipboard operation
testify copied to clipboard

Add `Cap` and `Capf` assertions

Open moeen opened this issue 3 years ago • 3 comments

To assert capacity of Array, Slice and Channel types, add Cap and Capf assertions.

moeen avatar Jan 28 '23 13:01 moeen

PR: #1333

moeen avatar Feb 06 '23 15:02 moeen

That would be just a convenience for a niche use case. I don't think that it is worth extending the API surface at this point.

dolmen avatar Jul 11 '23 15:07 dolmen

I would like to have this method in the library, I was surprised not to find it when I needed it, which is what brought me here.

nikitacrit avatar Jul 22 '24 15:07 nikitacrit