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

Unified Diff: corelib/src/expect.dart

Issue 9690003: - Fix use of String operator + in runtime and standalone libraries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « corelib/src/exceptions.dart ('k') | corelib/src/future.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/expect.dart
===================================================================
--- corelib/src/expect.dart (revision 5311)
+++ corelib/src/expect.dart (working copy)
@@ -56,7 +56,7 @@
static void identical(var expected, var actual, [String reason = null]) {
if (expected === actual) return;
String msg = _getMessage(reason);
- _fail("Expect.identical(expected: <$expected>, actual: <$actual>$msg) " +
+ _fail("Expect.identical(expected: <$expected>, actual: <$actual>$msg) "
"fails.");
}
@@ -81,14 +81,14 @@
if ((expected - actual).abs() <= tolerance) return;
String msg = _getMessage(reason);
- _fail('Expect.approxEquals(expected:<$expected>, actual:<$actual>, ' +
+ _fail('Expect.approxEquals(expected:<$expected>, actual:<$actual>, '
'tolerance:<$tolerance>$msg) fails');
}
static void notEquals(unexpected, actual, [String reason = null]) {
if (unexpected != actual) return;
String msg = _getMessage(reason);
- _fail("Expect.notEquals(unexpected: <$unexpected>, actual:<$actual>$msg) " +
+ _fail("Expect.notEquals(unexpected: <$unexpected>, actual:<$actual>$msg) "
"fails.");
}
@@ -103,15 +103,15 @@
int n = Math.min(expected.length, actual.length);
for (int i = 0; i < n; i++) {
if (expected[i] != actual[i]) {
- _fail('Expect.listEquals(at index $i, ' +
+ _fail('Expect.listEquals(at index $i, '
'expected: <${expected[i]}>, actual: <${actual[i]}>$msg) fails');
}
}
// We check on length at the end in order to provide better error
// messages when an unexpected item is inserted in a list.
if (expected.length != actual.length) {
- _fail('Expect.listEquals(list length, ' +
- 'expected: <${expected.length}>, actual: <${actual.length}>$msg) ' +
+ _fail('Expect.listEquals(list length, '
+ 'expected: <${expected.length}>, actual: <${actual.length}>$msg) '
'fails');
}
}
« no previous file with comments | « corelib/src/exceptions.dart ('k') | corelib/src/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698