fest-assert-2.x icon indicating copy to clipboard operation
fest-assert-2.x copied to clipboard

Remove methods from *ArrayAssert that check is sorted

Open alexruiz opened this issue 12 years ago • 2 comments

This is another case of API explosion. Users can simply create the array they expect and check for equality. We already have a nice way to pass a Comparator.

alexruiz avatar Sep 15 '12 13:09 alexruiz

The idea was to check that an array is sorted without looking at its content. If we remove this, there won't be any easy way to do that.

joel-costigliola avatar Sep 15 '12 15:09 joel-costigliola

Thanks Joel. I agree. Now, checking if an array is sorting, based on a Comparator, should exist only for Object arrays. I need to double-check the API to see we don't expose it to array of primitives.

alexruiz avatar Sep 18 '12 06:09 alexruiz