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

Unified Diff: tests/corelib/num_clamp_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/corelib/num_clamp_test.dart
diff --git a/tests/corelib/num_clamp_test.dart b/tests/corelib/num_clamp_test.dart
index f848677f86d6c6305a865262e43d10fa82b608bf..b8731ab3c17f6dbdd383f3911ca3db508ca86f2e 100644
--- a/tests/corelib/num_clamp_test.dart
+++ b/tests/corelib/num_clamp_test.dart
@@ -16,10 +16,10 @@ testIntClamp() {
Expect.equals(0, (-1).clamp(0, 0));
Expect.equals(0, 0.clamp(0, 0));
Expect.throws(() => 0.clamp(0, -1), (e) => e is ArgumentError);
- Expect.throws(() => 0.clamp("str", -1),
- (e) => e is ArgumentError || e is TypeError);
- Expect.throws(() => 0.clamp(0, "2"),
- (e) => e is ArgumentError || e is TypeError);
+ Expect.throws(
+ () => 0.clamp("str", -1), (e) => e is ArgumentError || e is TypeError);
+ Expect.throws(
+ () => 0.clamp(0, "2"), (e) => e is ArgumentError || e is TypeError);
}
testDoubleClamp() {
@@ -34,9 +34,9 @@ testDoubleClamp() {
Expect.equals(0.0, 0.0.clamp(0.0, 0.0));
Expect.throws(() => 0.0.clamp(0.0, -1.0), (e) => e is ArgumentError);
Expect.throws(() => 0.0.clamp("str", -1.0),
- (e) => e is ArgumentError || e is TypeError);
- Expect.throws(() => 0.0.clamp(0.0, "2"),
- (e) => e is ArgumentError || e is TypeError);
+ (e) => e is ArgumentError || e is TypeError);
+ Expect.throws(
+ () => 0.0.clamp(0.0, "2"), (e) => e is ArgumentError || e is TypeError);
}
testDoubleClampInt() {
@@ -57,10 +57,10 @@ testDoubleClampInt() {
Expect.equals(0.0, 0.0.clamp(0, 0));
Expect.isTrue(0.0.clamp(0, 0) is double);
Expect.throws(() => 0.0.clamp(0, -1), (e) => e is ArgumentError);
- Expect.throws(() => 0.0.clamp("str", -1),
- (e) => e is ArgumentError || e is TypeError);
- Expect.throws(() => 0.0.clamp(0, "2"),
- (e) => e is ArgumentError || e is TypeError);
+ Expect.throws(
+ () => 0.0.clamp("str", -1), (e) => e is ArgumentError || e is TypeError);
+ Expect.throws(
+ () => 0.0.clamp(0, "2"), (e) => e is ArgumentError || e is TypeError);
}
testDoubleClampExtremes() {
@@ -68,8 +68,8 @@ testDoubleClampExtremes() {
Expect.equals(2.0, 2.0.clamp(-double.INFINITY, double.NAN));
Expect.equals(double.INFINITY, 2.0.clamp(double.INFINITY, double.NAN));
Expect.isTrue(2.0.clamp(double.NAN, double.NAN).isNaN);
- Expect.throws(() => 0.0.clamp(double.NAN, double.INFINITY),
- (e) => e is ArgumentError);
+ Expect.throws(
+ () => 0.0.clamp(double.NAN, double.INFINITY), (e) => e is ArgumentError);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698