drewbourne/hamcrest-as3

suggested matcher: inArray(Array)

drewbourne opened this issue · 1 comments

There should be a matcher to check if the item is in an Array as a counterpart to hasItem() and hasItems() which checks the item is an Array with the inner matcher.

example:
var items;Array = [1, 2, 3];
var value:Number = 2;
assertThat(value, inArray(items))

Implemented.