-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
satisfiesOnlyOnce
stack trace does not point to failed nested assertion
#3480
Comments
satisfiesOnlyOnce
stack trace has no entry for the failed nested assertionsatisfiesOnlyOnce
stack trace does not point to failed nested assertion
I'm not too sure what we could improve here, @upsidedownsmile what kind of improvement would you like to see in the error message ? |
Thanks for the explanation @joel-costigliola, now I understand why the underlying assertion error is not in the stackstrace. I forgot that there are different permutations of failed assertions and that's hard to put in the error message. But right now it is really hard to debug cases where there are several assertions inside a A realistic example: Is there anything that can be done to improve this? |
@upsidedownsmile I noticed the links in your message were broken, so I tried to restore them. I tried to look at the test but I'm not sure I understand how you'd like to verify In case you have a list of requirements and want to make sure that there is exactly one element satisfying it without knowing its position in advance, |
The following:
yields:
Reported at #2542 (comment) by @upsidedownsmile.
The text was updated successfully, but these errors were encountered: