Hello! Recently I learn the page TestComments <https://github.com/golang/go/wiki/TestComments> on Golang Wiki (on Github).
The section about Assert Libraries <https://github.com/golang/go/wiki/TestComments#assert-libraries> discourage the use of them. But I guess there's a little bit mistake in this approach because we have good libraries that provide assert functions. The argument *omits interesting information about what the test got right* is not the real true, is more easy to understand what the test does with 2 or 3 asserts than a if with 2 or 3 ORs inline. Furthermore libraries as Testify <https://github.com/stretchr/testify> provide rich and easy-readable informations when the test fails in the assert functions. Finally, using asserts or ifs don't guarantee that the test is right, the argument *Assert libraries make it too easy to write imprecise tests* is more about the quality of test than the use of an assert library. Any thoughts? (I tried to create an issue on Github <https://github.com/golang/go/issues/50573>, to promove the discussion about it, but was closed before the discussion start =|) -- 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/ae527187-077a-4b69-acac-e3a6ba526b00n%40googlegroups.com.