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
It would be nice if there was a way to test predicates on elements of a collection. assertThat(myList).hasSomeWith(myPredicate); (for an any predicate test), and assertThat(myList).hasEveryWith(myPredicate); (for an every predicate test).
The text was updated successfully, but these errors were encountered:
Categorically testing the contents of collections provides an example on how to achieve hasEveryWith which in your case would be something like assert_().in(myList).thatEach(predicateType).someCheckOnSubject();, however I couldn't find how to do hasSomeWith thus created #188.
It would be nice if there was a way to test predicates on elements of a collection.
assertThat(myList).hasSomeWith(myPredicate);
(for an any predicate test), andassertThat(myList).hasEveryWith(myPredicate);
(for an every predicate test).The text was updated successfully, but these errors were encountered: