dimanche 10 janvier 2016

Compare 2 hashsets in Assert

I am trying to compare 2 hashsets using assert true, i use the below technique.

assertTrue(set1.containsAll(set2) && set2.containsAll(set1));

But still i get the sets are not identical. I am 100% sure the values i pass same. When i check the debugger console both the sets have the same values but still this gives sets are not identical.

I am assuming there might be a problem with hash value or something.

How can i fix this?

Thank you.

Aucun commentaire:

Enregistrer un commentaire