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

Unified Diff: tests/compiler/dart2js_extra/lookup_map/reachable_data2_test.dart

Issue 1310183014: Generalize lookup-maps to support other const keys (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/compiler/dart2js/lookup_map_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/lookup_map/reachable_data2_test.dart
diff --git a/tests/compiler/dart2js_extra/lookup_map/reachable_data_test.dart b/tests/compiler/dart2js_extra/lookup_map/reachable_data2_test.dart
similarity index 78%
copy from tests/compiler/dart2js_extra/lookup_map/reachable_data_test.dart
copy to tests/compiler/dart2js_extra/lookup_map/reachable_data2_test.dart
index 8e71ea7ec1899ec5a09fc601916046a40847aa2c..9c824302156be09d3350d56c438de17050f53d92 100644
--- a/tests/compiler/dart2js_extra/lookup_map/reachable_data_test.dart
+++ b/tests/compiler/dart2js_extra/lookup_map/reachable_data2_test.dart
@@ -5,11 +5,12 @@
import 'package:lookup_map/lookup_map.dart';
import 'package:expect/expect.dart';
-class A{}
-class B{}
-class C{}
-class D{}
-class E{}
+class Key { final x; const Key(this.x); }
+const A = const Key(1);
+const B = const Key(2);
+const C = const Key(3);
+const D = const Key(4);
+const E = const Key(5);
const map = const LookupMap(const [
A, const ["the-text-for-A", B],
B, const ["the-text-for-B", C],
« no previous file with comments | « tests/compiler/dart2js/lookup_map_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698