Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
testing: add `assert` function #21015
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
I don't think we'd do this before Go had generics (#15292) even if we did. I don't know what's changed from previous times when this has been rejected. (usual argument I see is that testing assertion libraries become little DSLs and medium DSLs and then it's a whole new language you're using instead of using the language that the rest of your program is written in)
I'm going to place this on hold until #15292 makes some progress, though.
In the meantime you can use https://github.com/stretchr/testify etc.
I also think
I think following function prototypes are better than the one is suggested.