blob: a1b7ff57d7a1b31b05f9cab84718e7305c2a5cdb [file]
import 'package:matcher/expect.dart';
import 'package:test/scaffolding.dart';
void main() {
test('completion', () async {
// This check succeeds.
await expectLater(Future.value(42), completion(42));
// This check fails.
await expectLater(Future.value(42), completion(7));
// Expected: completes to a value that <7>
// Actual: <Instance of 'Future<int>'>
// Which: emitted <42>
});
}