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

Unified Diff: tests/language/enum_test.dart

Issue 2625053003: VM: [Kernel] Add toString() support for generated enum classes (Closed)
Patch Set: Created 3 years, 11 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/co19/co19-kernel.status ('k') | tests/language/language_kernel.status » ('j') | 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 a3b458632d92dbd9f03c07c1d89f524f79fb8637..ab24b629905c52e3466789b82aea18bb0ced7e74 100644
--- a/tests/language/enum_test.dart
+++ b/tests/language/enum_test.dart
@@ -20,7 +20,8 @@ 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);
+ Expect.isTrue(identical(const [Enum2.A], Enum2.values) ||
+ identical(const <Enum2>[Enum2.A], Enum2.values));
kustermann 2017/01/11 12:25:06 I think dartk does the right thing by making the c
Vyacheslav Egorov (Google) 2017/01/11 17:28:28 I think it should be only one or another. Per sp
Lasse Reichstein Nielsen 2017/01/11 17:55:00 Agree, the spec is clear. Do file bugs (or say so,
Vyacheslav Egorov (Google) 2017/01/11 17:56:29 It would be nice if you do that :) Thanks a (metri
Enum2.values.forEach(test2);
Expect.equals('Enum3.B', Enum3.B.toString());
« no previous file with comments | « tests/co19/co19-kernel.status ('k') | tests/language/language_kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698