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

Unified Diff: tests/language/compile_time_constant3_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_constant2_test.dart ('k') | tests/language/compile_time_constant5_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant3_test.dart
diff --git a/tests/language/compile_time_constant3_test.dart b/tests/language/compile_time_constant3_test.dart
index e314bc902a1bdab6ab64a69781ac26a5eaa649be..1c14c80ac212913f09e985b6d1aa11d00b0db362 100644
--- a/tests/language/compile_time_constant3_test.dart
+++ b/tests/language/compile_time_constant3_test.dart
@@ -2,25 +2,25 @@
// 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 x = 19.5;
-final y = 3.3;
-final g1 = x + y;
-final g2 = x * y;
-final g3 = x / y;
-final g4 = x ~/ y;
-final g5 = -x;
-final g6 = x < y;
-final g7 = x <= y;
-final g8 = x <= x;
-final g9 = x > y;
-final g10 = x >= y;
-final g11 = x >= x;
-final g12 = x == y;
-final g13 = x == x;
-final g14 = x != y;
-final g15 = x != x;
-final g16 = g1 + g2 + g3 + g4 + g5;
-final g17 = x % y;
+const x = 19.5;
+const y = 3.3;
+const g1 = x + y;
+const g2 = x * y;
+const g3 = x / y;
+const g4 = x ~/ y;
+const g5 = -x;
+const g6 = x < y;
+const g7 = x <= y;
+const g8 = x <= x;
+const g9 = x > y;
+const g10 = x >= y;
+const g11 = x >= x;
+const g12 = x == y;
+const g13 = x == x;
+const g14 = x != y;
+const g15 = x != x;
+const g16 = g1 + g2 + g3 + g4 + g5;
+const g17 = x % y;
main() {
Expect.equals(22.8, g1);
« no previous file with comments | « tests/language/compile_time_constant2_test.dart ('k') | tests/language/compile_time_constant5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698