pairwiseCompare<S, T> function

Matcher pairwiseCompare <S, T>(
  1. Iterable<S> expected,
  2. bool comparator(
    1. S a,
    2. T b
    ),
  3. String description
)

A pairwise matcher for Iterables.

The comparator function, taking an expected and an actual argument, and returning whether they match, will be applied to each pair in order. description should be a meaningful name for the comparator.

Implementation

Matcher pairwiseCompare<S, T>(
        Iterable<S> expected, bool comparator(S a, T b), String description) =>
    _PairwiseCompare(expected, comparator, description);