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

Unified Diff: tests/language/map_literal3_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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/map_literal3_test.dart
diff --git a/tests/language/map_literal3_test.dart b/tests/language/map_literal3_test.dart
index 3a11f76789cbdfbf8cf686421f36520dd5f260b7..f2f02a258600015cbbdad03e9c9c76343b4615d6 100644
--- a/tests/language/map_literal3_test.dart
+++ b/tests/language/map_literal3_test.dart
@@ -63,17 +63,17 @@ class MapLiteralTest {
Expect.equals(14, m.length);
// Check that last value of duplicate key wins for const maps.
- final cmap = const <String, num>{"a": 10, "b": 100, "a": 1000}; /// static type warning
+ final cmap = const <String, num>{"a": 10, "b": 100, "a": 1000}; //# static type warning
Expect.equals(2, cmap.length);
Expect.equals(1000, cmap["a"]);
Expect.equals(100, cmap["b"]);
- final cmap2 = const <String, num>{"a": 10, "a": 100, "a": 1000}; /// static type warning
+ final cmap2 = const <String, num>{"a": 10, "a": 100, "a": 1000}; //# static type warning
Expect.equals(1, cmap2.length);
Expect.equals(1000, cmap["a"]);
// Check that last value of duplicate key wins for mutable maps.
- var mmap = <String, num>{"a": 10, "b": 100, "a": 1000}; /// static type warning
+ var mmap = <String, num>{"a": 10, "b": 100, "a": 1000}; //# static type warning
Expect.equals(2, mmap.length);
Expect.equals(1000, mmap["a"]);
@@ -83,7 +83,7 @@ class MapLiteralTest {
// are still evaluated, including side effects.
int counter = 0;
int ctr() { counter += 10; return counter; }
- mmap = <String, num>{"a": ctr(), "b": ctr(), "a": ctr()}; /// static type warning
+ mmap = <String, num>{"a": ctr(), "b": ctr(), "a": ctr()}; //# static type warning
Expect.equals(2, mmap.length);
Expect.equals(40, ctr());
Expect.equals(30, mmap["a"]);

Powered by Google App Engine
This is Rietveld 408576698