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

Unified Diff: tests/language/src/ListLiteralTest.dart

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch Created 9 years, 2 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
Index: tests/language/src/ListLiteralTest.dart
diff --git a/tests/language/src/ListLiteralTest.dart b/tests/language/src/ListLiteralTest.dart
index 7bb523e09fb70406aa3bcc65a9940ebe61d5b918..0d1261f8791282a2746a4c56ef2cfbc31c2b7abb 100644
--- a/tests/language/src/ListLiteralTest.dart
+++ b/tests/language/src/ListLiteralTest.dart
@@ -37,6 +37,12 @@ class ListLiteralTest {
Expect.equals(0, <String>[].length);
Expect.equals(0, const <String>[].length);
Expect.equals(0, const [].length);
+
+ e2 = [1, 2.0, 0x03, 2.0e5];
+ Expect.equals(1, e2[0]);
+ Expect.equals(2.0, e2[1]);
+ Expect.equals(3, e2[2]);
+ Expect.equals(200000.0, e2[3]);
}
}

Powered by Google App Engine
This is Rietveld 408576698