Skip to content

XXXArrayAssert : add containsExactly(xxx... elements) #116

Open
abdonn opened this Issue Sep 20, 2012 · 1 comment

2 participants

@abdonn
abdonn commented Sep 20, 2012

it would be handy to have

int[] myArray = ...
assertThat(myArray).containsExactly(1,4,7);
@joel-costigliola
Collaborator

Yes I agree, it would be consistent with ObjectArrayAssert.
In the meantime you can use containsSequence, it checks elements are present and in the given sequence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.