Skip to content

producesInOrder

MatcherproducesInOrder(Objectexpected)

Matches a Rill that emits elements in the exact order given by expected.

expected may be a Dart Iterable or a RIterableOnce. The Rill must succeed — a failure or cancelation causes the test to fail.

dart
expect(Rill.emits([1, 2, 3]), producesInOrder([1, 2, 3]));