Chromium Code Reviews

Unified Diff: tests/language/compile_time_constant_o_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: Instance fields are never const. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: tests/language/compile_time_constant_o_test.dart
diff --git a/tests/language/compile_time_constant_o_test.dart b/tests/language/compile_time_constant_o_test.dart
index 56a6da509668d13928054d8c2a4d008f4e2ee679..8fc4c401185d482b9da3fbda481985a6d3cc1ced 100644
--- a/tests/language/compile_time_constant_o_test.dart
+++ b/tests/language/compile_time_constant_o_test.dart
@@ -3,17 +3,17 @@
// BSD-style license that can be found in the LICENSE file.
// Test compile-time constants with string-interpolation.
-final str = "foo";
-final m1 = const { "foo": 499 };
-final m2 = const { "$str": 499 };
-final m3 = const { "$str": 42, "foo": 499 };
-final m4 = const { "foo": 42, "$str": 499 };
-final m5 = const { "f" "o" "o": 499 };
+const str = "foo";
+const m1 = const { "foo": 499 };
+const m2 = const { "$str": 499 };
+const m3 = const { "$str": 42, "foo": 499 };
+const m4 = const { "foo": 42, "$str": 499 };
+const m5 = const { "f" "o" "o": 499 };
-final mm1 = const { "afoo#foo": 499 };
-final mm2 = const { "a$str#$str": 499 };
-final mm3 = const { "a" "$str" "#" "foo": 499 };
-final mm4 = const { "a$str" "#$str": 499 };
+const mm1 = const { "afoo#foo": 499 };
+const mm2 = const { "a$str#$str": 499 };
+const mm3 = const { "a" "$str" "#" "foo": 499 };
+const mm4 = const { "a$str" "#$str": 499 };
main() {
Expect.equals(1, m1.length);

Powered by Google App Engine