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

Unified Diff: pkg/lookup_map/test/lookup_map_test.dart

Issue 2713203002: Fix typing for lookup-map test. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/lookup_map/test/lookup_map_test.dart
diff --git a/pkg/lookup_map/test/lookup_map_test.dart b/pkg/lookup_map/test/lookup_map_test.dart
index ce001dd60303ee5789e8112f4cfc625369b5bf95..7695833c769b08455758cd9da59081bbd23d2291 100644
--- a/pkg/lookup_map/test/lookup_map_test.dart
+++ b/pkg/lookup_map/test/lookup_map_test.dart
@@ -29,14 +29,14 @@ main() {
});
test('pair constructor', () {
- var m = const LookupMap.pair(A, "the-text-for-A");
+ var m = const LookupMap<dynamic, String>.pair(A, "the-text-for-A");
expect(m[A], 'the-text-for-A');
expect(m[B], null);
});
test('nested lookup', () {
var m = const LookupMap(const [],
- const [const LookupMap.pair(A, "the-text-for-A")]);
+ const [const LookupMap<dynamic, String>.pair(A, "the-text-for-A")]);
expect(m[A], 'the-text-for-A');
expect(m[B], null);
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698