Chromium Code Reviews| Index: tests/lib/math/min_max_test.dart |
| diff --git a/tests/lib/math/min_max_test.dart b/tests/lib/math/min_max_test.dart |
| index 2b16176740f3449cacdc90bf5bef07aa2618403a..1f891853b0daf320781239e651717d03f690f832 100644 |
| --- a/tests/lib/math/min_max_test.dart |
| +++ b/tests/lib/math/min_max_test.dart |
| @@ -15,12 +15,12 @@ var nan = double.NAN; |
| class Wrap implements Comparable { |
| final value; |
| Wrap(this.value); |
| - int compare(Wrap other) => value.compare(other.value); |
| - bool operator<(Wrap other) => compare(other) < 0; |
| - bool operator<=(Wrap other) => compare(other) <= 0; |
| - bool operator>(Wrap other) => compare(other) > 0; |
| - bool operator>=(Wrap other) => compare(other) >= 0; |
| - bool operator==(other) => other is Wrap && compare(other) == 0; |
| + int compareTo(Wrap other) => value.compareTo(other.value); |
| + bool operator<(Wrap other) => compareTo(other) < 0; |
| + bool operator<=(Wrap other) => compareTo(other) <= 0; |
| + bool operator>(Wrap other) => compareTo(other) > 0; |
| + bool operator>=(Wrap other) => compareTo(other) >= 0; |
| + bool operator==(other) => other is Wrap && compareTo(other) == 0; |
|
Lasse Reichstein Nielsen
2013/11/01 09:37:36
So this never worked?
floitsch
2013/11/01 16:57:25
It was testing that there was an error if the inpu
|
| String toString() => 'Wrap($value)'; |
| int get hashCode => value.hashCode; |
| } |