-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makeassert.Zero
harder to misuse
#12
Comments
Aren't you calling it wrong, though? There's no expected value for that function, it's assumed to be whatever the zero value is for the type. Or do you mean that it's easy to accidentally call incorrectly and then end up with a test that always passes? |
Oh, I guess this also ought to fix your case... 929325d |
Exactly. Your fix looks great, thank you! |
Closing due to inactivity. |
Firstly, thank you for this excellent library! I'm slowly migrating my projects from stretchr/testify to alecthomas/assert.
What's wrong with this code?
Spoiler alert: this test always passes, no matter how big
len(foo)
is.Is there a way to make this API harder to misuse?
The text was updated successfully, but these errors were encountered: