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

Unified Diff: tests/language/enum_test.dart

Issue 1407103002: Make enum values array canonical (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: wip Created 5 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
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/enum_test.dart
diff --git a/tests/language/enum_test.dart b/tests/language/enum_test.dart
index 09395eb7b3213e0d30cf2bfce9492bd028ed8940..0e41965ac5f1837361883ba64007eeaed4f641c3 100644
--- a/tests/language/enum_test.dart
+++ b/tests/language/enum_test.dart
@@ -22,6 +22,7 @@ main() {
Expect.equals('Enum2.A', Enum2.A.toString());
Expect.equals(0, Enum2.A.index);
Expect.listEquals([Enum2.A], Enum2.values);
+ Expect.identical(const [Enum2.A], Enum2.values);
rmacnak 2015/10/15 22:20:21 (sigh, generics) Specs says this should be const <
hausner 2015/10/15 22:53:00 As discussed offline, I'll leave the type argument
Enum2.values.forEach(test2);
Expect.equals('Enum3.B', Enum3.B.toString());
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698