Equality for collections

7 views
Skip to first unread message

Gergely Papp

unread,
Sep 16, 2021, 12:11:12 PM9/16/21
to equalsverifier
Hi Jan,

thank you very much for actively developing this project, it is very useful.

I looked at collection equality checking and found that it does not seem generate an error in the following case:
- none of the collections are null
- collection1 has all the elements from collection2
- but collection2 does not have all the elements from collection1

In that case the EqualsVerifier.simple() call did not give any errors. Is that expected?

Best Regards,

     Gergely


Jan Ouwens

unread,
Sep 17, 2021, 2:25:48 AM9/17/21
to equalsv...@googlegroups.com, equalsverifier
Hi Gergely,

Thanks for reaching out!
I don't fully understand what you're trying to achieve, though. Are you testing a class that contains collections, or are you testing the collections themselves? And how are you doing that? Can you post some (example) code?


Regards,
Jan
--
You received this message because you are subscribed to the Google Groups "equalsverifier" group.
To unsubscribe from this group and stop receiving emails from it, send an email to equalsverifie...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages