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

Unified Diff: tests/corelib/collection_length_test.dart

Issue 12441003: Rename String.concat to operator+. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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 | « tests/compiler/dart2js_extra/to_string_test.dart ('k') | tests/corelib/string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/collection_length_test.dart
diff --git a/tests/corelib/collection_length_test.dart b/tests/corelib/collection_length_test.dart
index e98cb1b7f129d0d4f541a44f58683d0ee6e21d1d..1968259fbedbe7c19ed3c43963d7e63569d2a16d 100644
--- a/tests/corelib/collection_length_test.dart
+++ b/tests/corelib/collection_length_test.dart
@@ -14,11 +14,11 @@ void testString(int n) {
int length = n;
while (true) {
if ((length & 1) == 1) {
- string = string.concat(s);
+ string += s;
}
length >>= 1;
if (length == 0) break;
- s = s.concat(s);
+ s += s;
}
testLength(string, n);
testLength(string.codeUnits, n);
« no previous file with comments | « tests/compiler/dart2js_extra/to_string_test.dart ('k') | tests/corelib/string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698