Index: tests/corelib/range_error_test.dart |
diff --git a/tests/corelib/range_error_test.dart b/tests/corelib/range_error_test.dart |
index ccb0cb764d2b746ab69c1d4e636a92fa573b2928..05107e8a2086c3d79576abf5046145167ba8a31d 100644 |
--- a/tests/corelib/range_error_test.dart |
+++ b/tests/corelib/range_error_test.dart |
@@ -56,15 +56,15 @@ void testToString() { |
for (var message in [null, "THEMESSAGE"]) { |
var value = 37; |
for (var re in [ |
- new ArgumentError.value(value, name, message), |
- new RangeError.value(value, name, message), |
- new RangeError.index(value, [], name, message), |
- new RangeError.range(value, 0, 24, name, message) |
+ new ArgumentError.value(value, name, message), |
+ new RangeError.value(value, name, message), |
+ new RangeError.index(value, [], name, message), |
+ new RangeError.range(value, 0, 24, name, message) |
]) { |
var str = re.toString(); |
if (name != null) Expect.isTrue(str.contains(name), "$name in $str"); |
- if (message != null) Expect.isTrue(str.contains(message), |
- "$message in $str"); |
+ if (message != null) |
+ Expect.isTrue(str.contains(message), "$message in $str"); |
Expect.isTrue(str.contains("$value"), "$value in $str"); |
// No empty ':' separated parts - in that case the colon is omitted too. |
Expect.isFalse(str.contains(new RegExp(":\s*:"))); |