-
-
Notifications
You must be signed in to change notification settings - Fork 823
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
Accept error and bool with Must() #99
Comments
|
No need, just allow |
I didn't think that far. Check out my PR. |
Your PR looks good :) thank your for your support on this 💯 P.S: Just out of curiosity, why is each test case wrapped into separate blocks? I'd probably place them into individual |
I copied and modified the existing |
Additionally to error returns, you also often stumble upon boolean returns.
Fictional example:
It is possible to use type switches within generic function, so we could switch for error and bool alike.
Allowing the Must() function to become slightly more generic than it is right now without breaking anything.
The text was updated successfully, but these errors were encountered: