containAllInAnyOrder fails to detect mismatch in element counts, as long as the overall counts of elements match #3881
Labels
assertions 🔍
Related to the assertion mechanisms within the testing framework.
bug 🐛
Issues that report a problem or error in the code.
latest from master
Presumably
containAllInAnyOrder
should detect mismatch in element counts, and sometimes it does, as follows:However, the following test passes, which seems counter-intuitive to me:
Interestingly, when I tried to fix the issue by comparing counts of elements, it broke two existing tests, as follows:
My understanding is that these two tests are not validating correct behavior, and as such they should be fixed.
My understanding is that these two tests should not be passing in the first place.
If this is correct, I have a fix and can raise a PR.
The text was updated successfully, but these errors were encountered: