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

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

Comments

Projects
None yet
2 participants
@abdonn

abdonn commented Sep 20, 2012

it would be handy to have

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

This comment has been minimized.

Show comment
Hide comment
@joel-costigliola

joel-costigliola Sep 21, 2012

Contributor

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.

Contributor

joel-costigliola commented Sep 21, 2012

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