On Thu, Feb 22, 2024 at 04:41:53PM -0800, Seth Hoenig wrote: > https://github.com/shoenig/test > > We've been using this for a couple years now, and it's been great. I am > biased though, for obvious reasons. It makes use of the go-cmp library > under the hood for creating legible diffs, and integrates well with > protocmp for when you need to work with protobufs.
That's exactly what I was looking for: func Eq[A any](t T, exp, val A, settings ...Setting) Will give it a try, thanks! > > On Thursday, February 22, 2024 at 2:20:57 AM UTC-6 Harmen wrote: > > > Hi, > > > > anyone has a tip for a nice (small) "assert" test help library which uses > > generics for the "equals" and "not equals" functions? > > > > testify is the obvious library to use for tests, which works fine, but it > > would > > be nice to have something which uses generics here. > > > > Thanks! > > > > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/61fe55d0-8e3d-4dc0-a12e-00f48dbc7856n%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ZdhYe9qzxjII5HBo%40arp.lijzij.de.