Index: tests/corelib/errors_test.dart |
diff --git a/tests/corelib/errors_test.dart b/tests/corelib/errors_test.dart |
index c980d441f3865b786422b9ea427e9593d5bba9e5..763b4863e70ec013bd8a9fecf9b751f1e2e36f79 100644 |
--- a/tests/corelib/errors_test.dart |
+++ b/tests/corelib/errors_test.dart |
@@ -7,71 +7,71 @@ import "package:expect/expect.dart"; |
// Test that error constructors do what they are documented as doing. |
main() { |
- Expect.equals("Invalid argument(s)", |
- new ArgumentError().toString()); |
- Expect.equals("Invalid argument(s): message", |
- new ArgumentError("message").toString()); |
- Expect.equals("Invalid argument: null", |
- new ArgumentError.value(null).toString()); |
- Expect.equals("Invalid argument: 42", |
- new ArgumentError.value(42).toString()); |
- Expect.equals("Invalid argument: \"bad\"", |
- new ArgumentError.value("bad").toString()); |
+ Expect.equals("Invalid argument(s)", new ArgumentError().toString()); |
+ Expect.equals( |
+ "Invalid argument(s): message", new ArgumentError("message").toString()); |
+ Expect.equals( |
+ "Invalid argument: null", new ArgumentError.value(null).toString()); |
+ Expect.equals("Invalid argument: 42", new ArgumentError.value(42).toString()); |
+ Expect.equals( |
+ "Invalid argument: \"bad\"", new ArgumentError.value("bad").toString()); |
Expect.equals("Invalid argument (foo): null", |
- new ArgumentError.value(null, "foo").toString()); |
+ new ArgumentError.value(null, "foo").toString()); |
Expect.equals("Invalid argument (foo): 42", |
- new ArgumentError.value(42, "foo").toString()); |
+ new ArgumentError.value(42, "foo").toString()); |
Expect.equals("Invalid argument (foo): message: 42", |
- new ArgumentError.value(42, "foo", "message").toString()); |
+ new ArgumentError.value(42, "foo", "message").toString()); |
Expect.equals("Invalid argument: message: 42", |
- new ArgumentError.value(42, null, "message").toString()); |
+ new ArgumentError.value(42, null, "message").toString()); |
Expect.equals("Invalid argument(s): Must not be null", |
- new ArgumentError.notNull().toString()); |
+ new ArgumentError.notNull().toString()); |
Expect.equals("Invalid argument(s) (foo): Must not be null", |
- new ArgumentError.notNull("foo").toString()); |
+ new ArgumentError.notNull("foo").toString()); |
- Expect.equals("RangeError", |
- new RangeError(null).toString()); |
- Expect.equals("RangeError: message", |
- new RangeError("message").toString()); |
+ Expect.equals("RangeError", new RangeError(null).toString()); |
+ Expect.equals("RangeError: message", new RangeError("message").toString()); |
Expect.equals("RangeError: Value not in range: 42", |
- new RangeError.value(42).toString()); |
+ new RangeError.value(42).toString()); |
Expect.equals("RangeError (foo): Value not in range: 42", |
- new RangeError.value(42, "foo").toString()); |
+ new RangeError.value(42, "foo").toString()); |
Expect.equals("RangeError (foo): message: 42", |
- new RangeError.value(42, "foo", "message").toString()); |
+ new RangeError.value(42, "foo", "message").toString()); |
Expect.equals("RangeError: message: 42", |
- new RangeError.value(42, null, "message").toString()); |
+ new RangeError.value(42, null, "message").toString()); |
Expect.equals("RangeError: Invalid value: Not in range 2..9, inclusive: 42", |
- new RangeError.range(42, 2, 9).toString()); |
- Expect.equals("RangeError (foo): Invalid value: Not in range 2..9, " |
- "inclusive: 42", |
- new RangeError.range(42, 2, 9, "foo").toString()); |
+ new RangeError.range(42, 2, 9).toString()); |
+ Expect.equals( |
+ "RangeError (foo): Invalid value: Not in range 2..9, " |
+ "inclusive: 42", |
+ new RangeError.range(42, 2, 9, "foo").toString()); |
Expect.equals("RangeError (foo): message: Not in range 2..9, inclusive: 42", |
- new RangeError.range(42, 2, 9, "foo", "message").toString()); |
+ new RangeError.range(42, 2, 9, "foo", "message").toString()); |
Expect.equals("RangeError: message: Not in range 2..9, inclusive: 42", |
- new RangeError.range(42, 2, 9, null, "message").toString()); |
+ new RangeError.range(42, 2, 9, null, "message").toString()); |
- Expect.equals("RangeError: Index out of range: " |
- "index should be less than 3: 42", |
- new RangeError.index(42, [1, 2, 3]).toString()); |
- Expect.equals("RangeError (foo): Index out of range: " |
- "index should be less than 3: 42", |
- new RangeError.index(42, [1, 2, 3], "foo").toString()); |
- Expect.equals("RangeError (foo): message: " |
- "index should be less than 3: 42", |
- new RangeError.index(42, [1, 2, 3], |
- "foo", "message").toString()); |
- Expect.equals("RangeError: message: " |
- "index should be less than 3: 42", |
- new RangeError.index(42, [1, 2, 3], |
- null, "message").toString()); |
- Expect.equals("RangeError (foo): message: " |
- "index should be less than 2: 42", |
- new RangeError.index(42, [1, 2, 3], |
- "foo", "message", 2).toString()); |
- Expect.equals("RangeError: Index out of range: " |
- "index must not be negative: -5", |
- new RangeError.index(-5, [1, 2, 3]).toString()); |
+ Expect.equals( |
+ "RangeError: Index out of range: " |
+ "index should be less than 3: 42", |
+ new RangeError.index(42, [1, 2, 3]).toString()); |
+ Expect.equals( |
+ "RangeError (foo): Index out of range: " |
+ "index should be less than 3: 42", |
+ new RangeError.index(42, [1, 2, 3], "foo").toString()); |
+ Expect.equals( |
+ "RangeError (foo): message: " |
+ "index should be less than 3: 42", |
+ new RangeError.index(42, [1, 2, 3], "foo", "message").toString()); |
+ Expect.equals( |
+ "RangeError: message: " |
+ "index should be less than 3: 42", |
+ new RangeError.index(42, [1, 2, 3], null, "message").toString()); |
+ Expect.equals( |
+ "RangeError (foo): message: " |
+ "index should be less than 2: 42", |
+ new RangeError.index(42, [1, 2, 3], "foo", "message", 2).toString()); |
+ Expect.equals( |
+ "RangeError: Index out of range: " |
+ "index must not be negative: -5", |
+ new RangeError.index(-5, [1, 2, 3]).toString()); |
} |