blob: 0454209e8d5d92133ee0326de0c1fcb4480a4042 [file]
import 'package:matcher/expect.dart';
import 'package:test/scaffolding.dart';
void main() {
test('isFormatException', () {
// This check succeeds.
expect(const FormatException('bad input'), isFormatException);
// This check fails.
expect(StateError('nope'), isFormatException);
// Expected: <Instance of 'FormatException'>
// Actual: StateError:<Bad state: nope>
// Which: is not an instance of 'FormatException'
});
}