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

Unified Diff: tests/lib/math/math2_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/math/math2_test.dart
diff --git a/tests/lib/math/math2_test.dart b/tests/lib/math/math2_test.dart
index 7ba8c3f4d7209345c802e80ca56763969bd89e45..e24e3b260312633696b39b3b0d2718181d8ec3b5 100644
--- a/tests/lib/math/math2_test.dart
+++ b/tests/lib/math/math2_test.dart
@@ -6,28 +6,29 @@
// class. This can easily be simplified once we get rid of the Math
// class entirely.
library math_test;
+
import "package:expect/expect.dart";
import 'dart:math' as math;
class MathLibraryTest {
static void testConstants() {
// Source for mathematical constants is Wolfram Alpha.
- Expect.equals(2.7182818284590452353602874713526624977572470936999595749669,
- math.E);
+ Expect.equals(
+ 2.7182818284590452353602874713526624977572470936999595749669, math.E);
Expect.equals(2.3025850929940456840179914546843642076011014886287729760333,
- math.LN10);
- Expect.equals(0.6931471805599453094172321214581765680755001343602552541206,
- math.LN2);
+ math.LN10);
+ Expect.equals(
+ 0.6931471805599453094172321214581765680755001343602552541206, math.LN2);
Expect.equals(1.4426950408889634073599246810018921374266459541529859341354,
- math.LOG2E);
+ math.LOG2E);
Expect.equals(0.4342944819032518276511289189166050822943970058036665661144,
- math.LOG10E);
- Expect.equals(3.1415926535897932384626433832795028841971693993751058209749,
- math.PI);
+ math.LOG10E);
+ Expect.equals(
+ 3.1415926535897932384626433832795028841971693993751058209749, math.PI);
Expect.equals(0.7071067811865475244008443621048490392848359376884740365883,
- math.SQRT1_2);
+ math.SQRT1_2);
Expect.equals(1.4142135623730950488016887242096980785696718753769480731766,
- math.SQRT2);
+ math.SQRT2);
}
static checkClose(double a, double b, EPSILON) {
@@ -72,7 +73,6 @@ class MathLibraryTest {
checkClose(-math.PI / 2.0, math.asin(-1.0), EPSILON);
}
-
static void testAcos() {
// Given the imprecision of PI we can't expect better results than this.
final double EPSILON = 1e-15;
@@ -131,7 +131,7 @@ class MathLibraryTest {
checkVeryClose(math.SQRT1_2, math.sqrt(0.5));
checkVeryClose(1e50, math.sqrt(1e100));
checkVeryClose(1.1111111061110855443054405046358901279277111935183977e56,
- math.sqrt(12345678901234e99));
+ math.sqrt(12345678901234e99));
}
static void testExp() {

Powered by Google App Engine
This is Rietveld 408576698