14
14
15
15
assert ( isNaN ( Math . pow ( 0.0 /* any number */ , NaN ) ) ) ;
16
16
assert ( Math . pow ( NaN , 0.0 ) === 1.0 ) ;
17
- // assert ( Math.pow (NaN, -0.0) === 1.0 );
17
+ assert ( Math . pow ( NaN , - 0.0 ) === 1.0 ) ;
18
18
assert ( isNaN ( Math . pow ( NaN , 1.0 /* any non-zero number */ ) ) ) ;
19
19
assert ( Math . pow ( 2.0 , Infinity ) === Infinity ) ;
20
20
assert ( Math . pow ( 2.0 , - Infinity ) === 0.0 ) ;
@@ -27,17 +27,17 @@ assert ( Math.pow (Infinity, -1.0) === 0 );
27
27
assert ( Math . pow ( - Infinity , 3.0 ) === - Infinity ) ;
28
28
assert ( Math . pow ( - Infinity , 2.0 ) === Infinity ) ;
29
29
assert ( Math . pow ( - Infinity , 2.5 ) === Infinity ) ;
30
- // assert ( Math.pow (-Infinity, -3.0) === -0.0 );
30
+ assert ( Math . pow ( - Infinity , - 3.0 ) === - 0.0 ) ;
31
31
assert ( Math . pow ( - Infinity , - 2.0 ) === 0.0 ) ;
32
32
assert ( Math . pow ( - Infinity , - 2.5 ) === 0.0 ) ;
33
33
assert ( Math . pow ( 0.0 , 1.2 ) === 0.0 ) ;
34
34
assert ( Math . pow ( 0.0 , - 1.2 ) === Infinity ) ;
35
- // assert ( Math.pow (-0.0, 3.0) === -0.0 );
36
- // assert ( Math.pow (-0.0, 2.0) === 0.0 );
37
- // assert ( Math.pow (-0.0, 2.5) === 0.0 );
38
- // assert ( Math.pow (-0.0, -3.0) === -Infinity );
39
- // assert ( Math.pow (-0.0, -2.0) === Infinity );
40
- // assert ( Math.pow (-0.0, -2.5) === Infinity );
35
+ assert ( Math . pow ( - 0.0 , 3.0 ) === - 0.0 ) ;
36
+ assert ( Math . pow ( - 0.0 , 2.0 ) === 0.0 ) ;
37
+ assert ( Math . pow ( - 0.0 , 2.5 ) === 0.0 ) ;
38
+ assert ( Math . pow ( - 0.0 , - 3.0 ) === - Infinity ) ;
39
+ assert ( Math . pow ( - 0.0 , - 2.0 ) === Infinity ) ;
40
+ assert ( Math . pow ( - 0.0 , - 2.5 ) === Infinity ) ;
41
41
assert ( isNaN ( Math . pow ( - 3 , 2.5 ) ) ) ;
42
42
43
43
assert ( Math . pow ( - 2 , 2 ) === 4 ) ;
0 commit comments