22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44
5+ // ignore_for_file: deprecated_member_use_from_same_package
6+
57import 'package:collection/collection.dart' ;
68import 'package:test/test.dart' ;
79
810void main () {
911 group ('mapMap()' , () {
1012 test ('with an empty map returns an empty map' , () {
1113 expect (
12- // ignore: deprecated_member_use_from_same_package
1314 mapMap ({},
1415 key: expectAsync2 ((_, __) {}, count: 0 ),
1516 value: expectAsync2 ((_, __) {}, count: 0 )),
@@ -18,7 +19,6 @@ void main() {
1819
1920 test ('with no callbacks, returns a copy of the map' , () {
2021 var map = {'foo' : 1 , 'bar' : 2 };
21- // ignore: deprecated_member_use_from_same_package
2222 var result = mapMap <String , int , String , int >(map);
2323 expect (result, equals ({'foo' : 1 , 'bar' : 2 }));
2424
@@ -29,23 +29,20 @@ void main() {
2929
3030 test ("maps the map's keys" , () {
3131 expect (
32- // ignore: deprecated_member_use_from_same_package
3332 mapMap <String , int , dynamic , int >({'foo' : 1 , 'bar' : 2 },
3433 key: (dynamic key, dynamic value) => key[value]),
3534 equals ({'o' : 1 , 'r' : 2 }));
3635 });
3736
3837 test ("maps the map's values" , () {
3938 expect (
40- // ignore: deprecated_member_use_from_same_package
4139 mapMap <String , int , String , dynamic >({'foo' : 1 , 'bar' : 2 },
4240 value: (dynamic key, dynamic value) => key[value]),
4341 equals ({'foo' : 'o' , 'bar' : 'r' }));
4442 });
4543
4644 test ("maps both the map's keys and values" , () {
4745 expect (
48- // ignore: deprecated_member_use_from_same_package
4946 mapMap ({'foo' : 1 , 'bar' : 2 },
5047 key: (dynamic key, dynamic value) => '$key $value ' ,
5148 value: (dynamic key, dynamic value) => key[value]),
0 commit comments