Remove methods from *ArrayAssert that check is sorted #114

Open
alexruiz opened this Issue Sep 15, 2012 · 2 comments

Comments

Projects
None yet
2 participants
Owner

alexruiz commented Sep 15, 2012

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.

@ghost ghost assigned alexruiz Sep 15, 2012

Contributor

joel-costigliola commented Sep 15, 2012

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.

Owner

alexruiz commented Sep 18, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment