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

Unified Diff: pkg/fixnum/test/int_64_test.dart

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed VM bugs. Created 8 years, 1 month 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
Index: pkg/fixnum/test/int_64_test.dart
diff --git a/pkg/fixnum/test/int_64_test.dart b/pkg/fixnum/test/int_64_test.dart
index 65d47b3542d796511e141695b19e38b27c63459e..f41f45c78999d098eceb9756c1dff1cd14b93d0b 100644
--- a/pkg/fixnum/test/int_64_test.dart
+++ b/pkg/fixnum/test/int_64_test.dart
@@ -145,26 +145,26 @@ void testComparisons() {
try {
new int64.fromInt(17) < null;
- Expect.fail("x < null should throw NullPointerException");
- } on NullPointerException catch (e) {
+ Expect.fail("x < null should throw ArgumentError");
+ } on ArgumentError catch (e) {
}
try {
new int64.fromInt(17) <= null;
- Expect.fail("x <= null should throw NullPointerException");
- } on NullPointerException catch (e) {
+ Expect.fail("x <= null should throw ArgumentError");
+ } on ArgumentError catch (e) {
}
try {
new int64.fromInt(17) > null;
- Expect.fail("x > null should throw NullPointerException");
- } on NullPointerException catch (e) {
+ Expect.fail("x > null should throw ArgumentError");
+ } on ArgumentError catch (e) {
}
try {
new int64.fromInt(17) < null;
- Expect.fail("x >= null should throw NullPointerException");
- } on NullPointerException catch (e) {
+ Expect.fail("x >= null should throw ArgumentError");
+ } on ArgumentError catch (e) {
}
Expect.isFalse(new int64.fromInt(17) == null);

Powered by Google App Engine
This is Rietveld 408576698