-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
HaveExactElements: false positive when passed nothing #771
Comments
The reason for using |
yes looks like a bug to me. i'll try to prioritize this and get to it soon. i'm a bit behind on ginkgo/gomega stuff these days. |
Might be worth checking whether ConsistOf has the same problem. |
ConsistOf works:
BeEmpty produces better output:
|
Relax checking of results: the order does not matter. This also avoids onsi/gomega#771
alrighty i've fixed this now. will cut a release once CI goes green. |
@bart0sh found the following odd behavior:
Output:
I think this is a bug.
HaveExactElements
should report all extra elements in the actual slice. So if there is nothing to match against, any non-empty slice should cause a failure.The text was updated successfully, but these errors were encountered: