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

Unified Diff: tests/language/compile_time_constant6_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 | « tests/language/compile_time_constant5_test.dart ('k') | tests/language/compile_time_constant7_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant6_test.dart
diff --git a/tests/language/compile_time_constant6_test.dart b/tests/language/compile_time_constant6_test.dart
index 44aaff7765bb8f8eca0babd1098fa9e560ebfc9b..38c8729c773a6d981fed5266fa566ccc13a957dc 100644
--- a/tests/language/compile_time_constant6_test.dart
+++ b/tests/language/compile_time_constant6_test.dart
@@ -2,20 +2,20 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-final g1 = true;
-final g2 = 499;
-final g3 = "foo";
-final g4 = 3.3;
-final g5 = g1 == g2;
-final g6 = g1 == g3;
-final g7 = g1 == g4;
-final g8 = g2 == g3;
-final g9 = g2 == g4;
-final g10 = g3 == g4;
-final g11 = g1 == g1;
-final g12 = g2 == g2;
-final g13 = g3 == g3;
-final g14 = g4 == g4;
+const g1 = true;
+const g2 = 499;
+const g3 = "foo";
+const g4 = 3.3;
+const g5 = g1 == g2;
+const g6 = g1 == g3;
+const g7 = g1 == g4;
+const g8 = g2 == g3;
+const g9 = g2 == g4;
+const g10 = g3 == g4;
+const g11 = g1 == g1;
+const g12 = g2 == g2;
+const g13 = g3 == g3;
+const g14 = g4 == g4;
main() {
Expect.isFalse(g5);
« no previous file with comments | « tests/language/compile_time_constant5_test.dart ('k') | tests/language/compile_time_constant7_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698