Index: tests/language/compile_time_constant_a_test.dart |
diff --git a/tests/language/compile_time_constant_a_test.dart b/tests/language/compile_time_constant_a_test.dart |
index 254106497a86c1fcbf9752428c425fdc117f6426..73ff7de6ab522332ab6d5e68ac2f6c119a5b4d12 100644 |
--- a/tests/language/compile_time_constant_a_test.dart |
+++ b/tests/language/compile_time_constant_a_test.dart |
@@ -15,8 +15,8 @@ bool isUnsupportedError(o) => o is UnsupportedError; |
main() { |
Expect.equals(499, m1['a']); |
Expect.equals(null, m1['b']); |
- Expect.listEquals(['a'], m1.keys); |
- Expect.listEquals([499], m1.values); |
+ Expect.listEquals(['a'], m1.keys.toList()); |
+ Expect.listEquals([499], m1.values.toList()); |
Expect.isTrue(m1.containsKey('a')); |
Expect.isFalse(m1.containsKey('toString')); |
Expect.isTrue(m1.containsValue(499)); |
@@ -43,8 +43,8 @@ main() { |
Expect.equals(499, m2['a']); |
Expect.equals(42, m2['b']); |
Expect.equals(null, m2['c']); |
- Expect.listEquals(['a', 'b'], m2.keys); |
- Expect.listEquals([499, 42], m2.values); |
+ Expect.listEquals(['a', 'b'], m2.keys.toList()); |
+ Expect.listEquals([499, 42], m2.values.toList()); |
Expect.isTrue(m2.containsKey('a')); |
Expect.isTrue(m2.containsKey('b')); |
Expect.isFalse(m2.containsKey('toString')); |
@@ -76,8 +76,8 @@ main() { |
Expect.identical(m3['m1'], m1); |
Expect.identical(m3['m2'], m2); |
- Expect.listEquals(['z', 'a', 'm'], m4.keys); |
- Expect.listEquals([9, 8, 7], m4.values); |
+ Expect.listEquals(['z', 'a', 'm'], m4.keys.toList()); |
+ Expect.listEquals([9, 8, 7], m4.values.toList()); |
seenKeys = []; |
seenValues = []; |
m4.forEach((key, value) { |
@@ -96,8 +96,8 @@ main() { |
Expect.isTrue(m7.isEmpty); |
Expect.equals(0, m7.length); |
Expect.equals(null, m7['b']); |
- Expect.listEquals([], m7.keys); |
- Expect.listEquals([], m7.values); |
+ Expect.listEquals([], m7.keys.toList()); |
+ Expect.listEquals([], m7.values.toList()); |
Expect.isFalse(m7.containsKey('a')); |
Expect.isFalse(m7.containsKey('toString')); |
Expect.isFalse(m7.containsValue(499)); |