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

Unified Diff: pkg/fixnum/test/int_32_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_32_test.dart
diff --git a/pkg/fixnum/test/int_32_test.dart b/pkg/fixnum/test/int_32_test.dart
index 7ea6591582f1548efae11bc2aebb4c992afdc0e1..e719fa61a8610e017fd8b625583fe5d38b94ebec 100644
--- a/pkg/fixnum/test/int_32_test.dart
+++ b/pkg/fixnum/test/int_32_test.dart
@@ -132,26 +132,26 @@ void main() {
try {
new int32.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 int32.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 int32.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 int32.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 int32.fromInt(17) == null);

Powered by Google App Engine
This is Rietveld 408576698