benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Deep equals for ObjectArrayAssert #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am using version 1.0a1 of the FEST-Assert module.

It would be useful if ObjectArrayAssert would implement a "deep" version of
 the comparison methods, like isEqualTo(Object[]).
By deep I mean that if the elements of the teste array are arrays
themselves, then isEqualTo should "recursively" call (the call wouldn't
really be recursive) isEqualTo on all elements of the array.
Currently isEqualTo uses Arrays#equals(Object[], Object[]), which calls
#equals for each element of the arguments. The equals method for arrays
tests for identity, that's why the Array#equals methods exist in the first
place.

Thanks,
Csabi

Original issue reported on code.google.com by csaba.ju...@gmail.com on 18 Jul 2008 at 12:28

GoogleCodeExporter commented 9 years ago
Thanks Csabi :)

Regards,
-Alex

Original comment by Alex.Rui...@gmail.com on 18 Jul 2008 at 1:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-66

Original comment by Alex.Rui...@gmail.com on 5 Mar 2009 at 10:44

GoogleCodeExporter commented 9 years ago
Fixed. Thanks a lot Csabi! :)

-Alex

Original comment by Alex.Rui...@gmail.com on 11 Apr 2009 at 6:47

GoogleCodeExporter commented 9 years ago
Thank you Alex. And thank you for keeping up the good work :)

Original comment by csaba.ju...@gmail.com on 13 Apr 2009 at 4:42

GoogleCodeExporter commented 9 years ago
It would also be useful to have contains/containsOnly methods use deep 
comparison.

Original comment by icflo...@gmail.com on 10 Mar 2015 at 10:49