Index: tests/lib/unittest/matchers_test.dart |
diff --git a/tests/lib/unittest/matchers_test.dart b/tests/lib/unittest/matchers_test.dart |
index e02fab2c1f51a53cbea4cd2e04b895b8ce40ad2b..b0abad5a79f304aed1bffdd1eed28690a38c4be0 100644 |
--- a/tests/lib/unittest/matchers_test.dart |
+++ b/tests/lib/unittest/matchers_test.dart |
@@ -86,14 +86,13 @@ void main() { |
"but: exception 'X' does not match 'Y'."); |
}); |
- test('throwsBadNumberFormatException', () { |
- shouldPass(() { throw new BadNumberFormatException(''); }, |
- throwsBadNumberFormatException); |
+ test('throwsFormatException', () { |
+ shouldPass(() { throw new FormatException(''); }, |
+ throwsFormatException); |
shouldFail(() { throw new Exception(); }, |
- throwsBadNumberFormatException, |
- "Expected: throws an exception which matches BadNumberFormatException " |
- "but: exception <Exception> does not match " |
- "BadNumberFormatException."); |
+ throwsFormatException, |
+ "Expected: throws an exception which matches FormatException " |
+ "but: exception <Exception> does not match FormatException."); |
}); |
test('throwsIllegalArgumentException', () { |