| Index: tests/lib/typed_data/typed_list_iterable_test.dart
|
| diff --git a/tests/lib/typed_data/typed_list_iterable_test.dart b/tests/lib/typed_data/typed_list_iterable_test.dart
|
| index acdfa4ba8ab41a4b2c80c7f0c86b89a3ceb213d2..787bfec7868f86712b16a8d4e9c641f12add23bf 100644
|
| --- a/tests/lib/typed_data/typed_list_iterable_test.dart
|
| +++ b/tests/lib/typed_data/typed_list_iterable_test.dart
|
| @@ -153,10 +153,11 @@ void emptyChecks(list) {
|
| Expect.isTrue(list.takeWhile((x) => true).isEmpty);
|
| Expect.isTrue(list.toList().isEmpty);
|
| var l2 = list.toList();
|
| - l2.add(0);
|
| - Expect.equals(0, l2.last);
|
| + var sampleValue = list is List<int> ? 0 : 0.0;
|
| + l2.add(sampleValue);
|
| + Expect.equals(sampleValue, l2.last);
|
| var l3 = list.toList(growable: false);
|
| - Expect.throws(() => l3.add(0), (e) => e is UnsupportedError);
|
| + Expect.throws(() => l3.add(sampleValue), (e) => e is UnsupportedError);
|
| }
|
|
|
| main() {
|
|
|