Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Unified Diff: tests/lib/unittest/matchers_test.dart

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/math/math_test.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', () {
« no previous file with comments | « tests/lib/math/math_test.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698