Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: tests/lib_strong/math/min_max_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/lib_strong/math/min_max_test.dart
diff --git a/tests/lib_strong/math/min_max_test.dart b/tests/lib_strong/math/min_max_test.dart
index cf58169b5f8db2a16dd6c7b7e136b240cb4040b2..6cf4dfc32fe3db84b02c4c1a9caf8ea029e4961b 100644
--- a/tests/lib_strong/math/min_max_test.dart
+++ b/tests/lib_strong/math/min_max_test.dart
@@ -5,6 +5,7 @@
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
library min_max_test;
+
import "package:expect/expect.dart";
import 'dart:math';
@@ -16,11 +17,11 @@ class Wrap implements Comparable {
final value;
Wrap(this.value);
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;
+ 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;
String toString() => 'Wrap($value)';
int get hashCode => value.hashCode;
}

Powered by Google App Engine
This is Rietveld 408576698