-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add failsWithA and diesWithA to test assertions #5838
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
Add failsWithA and diesWithA to test assertions #5838
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps diesWithA
and failsWithA
?
Right, or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would stick with the A
syntax here since With
normally indicates a variant that takes an additional function as a parameter.
94dcbbd
to
24fdd88
Compare
* Add failsA and diesA to test assertions * Rename to failsWith and diesWith * Rename to failsWithA and diesWithA * scalafmt
Like throwsA but for fails and dies
https://github.com/search?l=Scala&q=fails+isSubtype+anything&type=Code