| Index: tests/lib_strong/math/double_pow_test.dart
|
| diff --git a/tests/lib_strong/math/double_pow_test.dart b/tests/lib_strong/math/double_pow_test.dart
|
| index 83a8ecea99790e814503af74d9b5ebad74bf029e..3afa31f7260bdc926a77e344c2510638b087011b 100644
|
| --- a/tests/lib_strong/math/double_pow_test.dart
|
| +++ b/tests/lib_strong/math/double_pow_test.dart
|
| @@ -4,6 +4,7 @@
|
| // VMOptions=--optimization-counter-threshold=5 --no-background-compilation
|
|
|
| library math_test;
|
| +
|
| import "package:expect/expect.dart";
|
| import 'dart:math';
|
|
|
| @@ -40,17 +41,17 @@ const Infinity = double.INFINITY;
|
| var samples = [
|
| NaN,
|
| -Infinity,
|
| - -3.0, // Odd integer
|
| - -2.0, // Even integer
|
| - -1.5, // Non-integer, magnitude > 1
|
| - -1.0, // Unit
|
| - -0.5, // Non-integer, magnitude < 1.
|
| + -3.0, // Odd integer
|
| + -2.0, // Even integer
|
| + -1.5, // Non-integer, magnitude > 1
|
| + -1.0, // Unit
|
| + -0.5, // Non-integer, magnitude < 1.
|
| -0.0,
|
| - 0.5, // Non-integer, magnitude < 1.
|
| - 1.0, // Unit
|
| - 1.5, // Non-integer, magnitude > 1
|
| - 2.0, // Even integer
|
| - 3.0, // Odd integer
|
| + 0.5, // Non-integer, magnitude < 1.
|
| + 1.0, // Unit
|
| + 1.5, // Non-integer, magnitude > 1
|
| + 2.0, // Even integer
|
| + 3.0, // Odd integer
|
| Infinity
|
| ];
|
|
|
| @@ -122,7 +123,6 @@ test() {
|
| }
|
|
|
| for (var d in samples) {
|
| -
|
| if (d.abs() < 1) {
|
| // if `y` is Infinity and the absolute value of `x` is less than 1, the
|
| // result is 0.0.
|
| @@ -136,7 +136,7 @@ test() {
|
| Expect.identical(1.0, pow(d, Infinity));
|
| }
|
| // if `y` is -Infinity, the result is `1/pow(x, Infinity)`.
|
| - Expect.identical(1/pow(d, Infinity), pow(d, -Infinity));
|
| + Expect.identical(1 / pow(d, Infinity), pow(d, -Infinity));
|
| }
|
|
|
| // Some non-exceptional values.
|
| @@ -159,4 +159,4 @@ test() {
|
|
|
| main() {
|
| for (int i = 0; i < 10; i++) test();
|
| -}
|
| +}
|
|
|