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

Unified Diff: tests/language/adjacent_const_string_literals_test.dart

Issue 10837359: Language tests updated to use const instead of final. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 years, 4 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 | « no previous file | tests/language/assign_static_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/adjacent_const_string_literals_test.dart
diff --git a/tests/language/adjacent_const_string_literals_test.dart b/tests/language/adjacent_const_string_literals_test.dart
index 1997aac1a58941dd5d86fd968e19951f12280f60..a054c4982a152c397dbfc70712fa111014e59ecd 100644
--- a/tests/language/adjacent_const_string_literals_test.dart
+++ b/tests/language/adjacent_const_string_literals_test.dart
@@ -23,7 +23,7 @@ testEmpty() {
Expect.equals("", (const Conster("" "" "")).toString());
Expect.equals("", (const Conster("" '' "")).toString());
Expect.equals("", (const Conster("" "" @"")).toString());
-
+
Expect.equals("a", (const Conster("a" "")).toString());
Expect.equals("a", (const Conster("a" '')).toString());
Expect.equals("a", (const Conster("a" @'')).toString());
@@ -31,7 +31,7 @@ testEmpty() {
Expect.equals("b", (const Conster('b' "")).toString());
Expect.equals("b", (const Conster('b' '')).toString());
Expect.equals("b", (const Conster('b' @'')).toString());
-
+
Expect.equals("c", (const Conster(@'c' "")).toString());
Expect.equals("c", (const Conster(@'c' '')).toString());
Expect.equals("c", (const Conster(@'c' @'')).toString());
@@ -43,13 +43,13 @@ testEmpty() {
Expect.equals("b", (const Conster('' "b")).toString());
Expect.equals("b", (const Conster('' 'b')).toString());
Expect.equals("b", (const Conster('' @'b')).toString());
-
+
Expect.equals("c", (const Conster(@'' "c")).toString());
Expect.equals("c", (const Conster(@'' 'c')).toString());
Expect.equals("c", (const Conster(@'' @'c')).toString());
}
-final s = "a";
+const s = "a";
testInterpolation() {
Expect.equals(@"ab", (const Conster("$s" "b")).toString());
@@ -59,7 +59,7 @@ testInterpolation() {
Expect.equals(@"-a-b", (const Conster("-$s-" "b")).toString());
Expect.equals(@"-a-b", (const Conster('-$s-' "b")).toString());
Expect.equals(@"-$s-b", (const Conster(@'-$s-' "b")).toString());
-
+
Expect.equals(@"ba", (const Conster('b' "$s")).toString());
Expect.equals(@"ba", (const Conster('b' '$s')).toString());
Expect.equals(@"b$s", (const Conster('b' @'$s')).toString());
« no previous file with comments | « no previous file | tests/language/assign_static_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698