You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like this, and it is not possible with the existing matchers. Names will probably be indexOf() and lastIndexOf() to be similar to the Array/String methods of the same names.
If i'm not wrong, it miss a Matcher with 2 parameters ?
something like "CompareMatcher" or "CombinedMatcher" (I don't know if it's the best implementation) :
public class CompareMatcher implements Matcher
{
public function CompareMatcher(obj1:Object, obj2:Object)
Hello,
I don't know if it's possible with the actual base Matchers, but it could be usefull to have something like this :
itemIndexOf, itemLastIndexOf
// I don't know if it's the best implementation :
assertThat(["a", "b", "c"], itemIndexOf("b", equalTo(0))) // FALSE
assertThat(["a", "b", "c"], itemIndexOf("b", lessThanOrEqualTo(1))) // TRUE
assertThat(["a", "b", "c"], itemIndexOf("e", equalTo(-1))) // TRUE
Usefull to :
Thanks !
The text was updated successfully, but these errors were encountered: