onsi / gomega

Ginkgo's Preferred Matcher Library
http://onsi.github.io/gomega/
MIT License
2.18k stars 284 forks source link

More flexible HaveLen and HaveCap matchers #767

Open rgalanakis opened 4 months ago

rgalanakis commented 4 months ago

Hello, long-time Ginkgo/Gomega lover here. I maintain an additional matcher library: https://github.com/rgalanakis/golangal

I know some of them are taste-dependent, but I think the built-in HaveLen and HaveCap matchers can be made more flexible without any downsides:

I have implementations of these here, or let me know if you'd add this and I can open a PR.

onsi commented 4 months ago

love it! yes please do submit a PR!