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

Unified Diff: tests/corelib/string_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/corelib/collection_length_test.dart ('k') | tests/language/constructor2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/string_test.dart
diff --git a/tests/corelib/string_test.dart b/tests/corelib/string_test.dart
index 2dd329c7d6b3d7f02ca690eb1628122c9c6f6efe..d0879bd4c600303efbb8ce4388026739546fd1d5 100644
--- a/tests/corelib/string_test.dart
+++ b/tests/corelib/string_test.dart
@@ -65,7 +65,7 @@ class StringTest {
static testConcat() {
var a = "One";
var b = "Four";
- var c = a.concat(b);
+ var c = a + b;
Expect.equals(7, c.length);
Expect.equals("OneFour", c);
}
@@ -73,8 +73,8 @@ class StringTest {
static testEquals() {
Expect.equals("str", "str");
- Expect.equals("str", "s".concat("t").concat("r"));
- Expect.equals("s".concat("t").concat("r"), "str");
+ Expect.equals("str", "s" + "t" + "r");
+ Expect.equals("s" + "t" + "r", "str");
Expect.equals(false, "str" == "s");
Expect.equals(false, "str" == "r");
« no previous file with comments | « tests/corelib/collection_length_test.dart ('k') | tests/language/constructor2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698