@@ -14,21 +14,37 @@ class MathLibraryTest {
1414 static void testConstants () {
1515 // Source for mathematical constants is Wolfram Alpha.
1616 Expect .equals (
17- 2.7182818284590452353602874713526624977572470936999595749669 , math.e);
18- Expect . equals ( 2.3025850929940456840179914546843642076011014886287729760333 ,
19- math.ln10 );
17+ 2.7182818284590452353602874713526624977572470936999595749669 ,
18+ math.e ,
19+ );
2020 Expect .equals (
21- 0.6931471805599453094172321214581765680755001343602552541206 , math.ln2);
22- Expect .equals (1.4426950408889634073599246810018921374266459541529859341354 ,
23- math.log2e);
24- Expect .equals (0.4342944819032518276511289189166050822943970058036665661144 ,
25- math.log10e);
21+ 2.3025850929940456840179914546843642076011014886287729760333 ,
22+ math.ln10,
23+ );
2624 Expect .equals (
27- 3.1415926535897932384626433832795028841971693993751058209749 , math.pi);
28- Expect .equals (0.7071067811865475244008443621048490392848359376884740365883 ,
29- math.sqrt1_2);
30- Expect .equals (1.4142135623730950488016887242096980785696718753769480731766 ,
31- math.sqrt2);
25+ 0.6931471805599453094172321214581765680755001343602552541206 ,
26+ math.ln2,
27+ );
28+ Expect .equals (
29+ 1.4426950408889634073599246810018921374266459541529859341354 ,
30+ math.log2e,
31+ );
32+ Expect .equals (
33+ 0.4342944819032518276511289189166050822943970058036665661144 ,
34+ math.log10e,
35+ );
36+ Expect .equals (
37+ 3.1415926535897932384626433832795028841971693993751058209749 ,
38+ math.pi,
39+ );
40+ Expect .equals (
41+ 0.7071067811865475244008443621048490392848359376884740365883 ,
42+ math.sqrt1_2,
43+ );
44+ Expect .equals (
45+ 1.4142135623730950488016887242096980785696718753769480731766 ,
46+ math.sqrt2,
47+ );
3248 }
3349
3450 static checkClose (double a, double b, EPSILON ) {
@@ -130,8 +146,10 @@ class MathLibraryTest {
130146 checkVeryClose (math.sqrt2, math.sqrt (2.0 ));
131147 checkVeryClose (math.sqrt1_2, math.sqrt (0.5 ));
132148 checkVeryClose (1e50 , math.sqrt (1e100 ));
133- checkVeryClose (1.1111111061110855443054405046358901279277111935183977e56 ,
134- math.sqrt (12345678901234e99 ));
149+ checkVeryClose (
150+ 1.1111111061110855443054405046358901279277111935183977e56 ,
151+ math.sqrt (12345678901234e99 ),
152+ );
135153 }
136154
137155 static void testExp () {
0 commit comments