| Index: pkg/scheduled_test/test/scheduled_stream/stream_matcher_test.dart
|
| diff --git a/pkg/scheduled_test/test/scheduled_stream/stream_matcher_test.dart b/pkg/scheduled_test/test/scheduled_stream/stream_matcher_test.dart
|
| index 127cd04776998f88561d9d5c188d0026cd18bd46..93c6b43cf4d02309417e15d5e33690f95e1a03b9 100644
|
| --- a/pkg/scheduled_test/test/scheduled_stream/stream_matcher_test.dart
|
| +++ b/pkg/scheduled_test/test/scheduled_stream/stream_matcher_test.dart
|
| @@ -208,6 +208,20 @@ void main(_, message) {
|
| " Which: unexpected end of stream"));
|
| });
|
|
|
| + expectTestPasses("consumeWhile() consumes values while the given matcher "
|
| + "matches", () {
|
| + var stream = createStream();
|
| + stream.expect(consumeWhile(lessThan(4)));
|
| + stream.expect(4);
|
| + });
|
| +
|
| + expectTestPasses("consumeWhile() will stop if the first value doesn't match",
|
| + () {
|
| + var stream = createStream();
|
| + stream.expect(consumeWhile(2));
|
| + stream.expect(1);
|
| + });
|
| +
|
| expectTestPasses("either() will match if the first branch matches", () {
|
| createStream().expect(either(1, 100));
|
| });
|
|
|