| Index: tests/corelib/iterable_min_max_test.dart
|
| diff --git a/tests/corelib/iterable_min_max_test.dart b/tests/corelib/iterable_min_max_test.dart
|
| index 6aa593f4e2e74651556f049d95aacc8ea149049c..e94e631bc16331711a642197db8953d5b5757250 100644
|
| --- a/tests/corelib/iterable_min_max_test.dart
|
| +++ b/tests/corelib/iterable_min_max_test.dart
|
| @@ -27,14 +27,10 @@ int compareC(C a, C b) => a.x.compareTo(b.x);
|
| testMinMax(iterable, min, max) {
|
| Expect.equals(min, iterable.min());
|
| Expect.equals(min, iterable.min(Comparable.compare));
|
| - Expect.equals(min, IterableMixinWorkaround.min(iterable));
|
| - Expect.equals(min, IterableMixinWorkaround.min(iterable, Comparable.compare));
|
| Expect.equals(max, iterable.min((a, b) => Comparable.compare(b, a)));
|
|
|
| Expect.equals(max, iterable.max());
|
| Expect.equals(max, iterable.max(Comparable.compare));
|
| - Expect.equals(max, IterableMixinWorkaround.max(iterable));
|
| - Expect.equals(max, IterableMixinWorkaround.max(iterable, Comparable.compare));
|
| Expect.equals(min, iterable.max((a, b) => Comparable.compare(b, a)));
|
| }
|
|
|
| @@ -58,18 +54,12 @@ main() {
|
|
|
| // Objects that are not Comparable.
|
| Expect.equals(const C(0), cList.min(compareC));
|
| - Expect.equals(const C(0), IterableMixinWorkaround.min(cList, compareC));
|
| Expect.equals(const C(0), new List.from(cList).min(compareC));
|
| - Expect.equals(const C(0), IterableMixinWorkaround.min(new List.from(cList), compareC));
|
| Expect.equals(const C(0), new Set.from(cList).min(compareC));
|
| - Expect.equals(const C(0), IterableMixinWorkaround.min(new Set.from(cList), compareC));
|
|
|
| Expect.equals(const C(10), cList.max(compareC));
|
| - Expect.equals(const C(10), IterableMixinWorkaround.max(cList, compareC));
|
| Expect.equals(const C(10), new List.from(cList).max(compareC));
|
| - Expect.equals(const C(10), IterableMixinWorkaround.max(new List.from(cList), compareC));
|
| Expect.equals(const C(10), new Set.from(cList).max(compareC));
|
| - Expect.equals(const C(10), IterableMixinWorkaround.max(new Set.from(cList), compareC));
|
|
|
| bool checkedMode = false;
|
| assert(checkedMode = true);
|
| @@ -78,4 +68,3 @@ main() {
|
| Expect.throws(cList.max, (e) => checkedMode ? e is TypeError
|
| : e is NoSuchMethodError);
|
| }
|
| -
|
|
|