Skip to content

Commit 3c1d0e6

Browse files
repasicszherczeg
authored andcommitted
Enable test cases (#2566)
Enable previously disabled test cases in math-pow.js. Everything works as expected. JerryScript-DCO-1.0-Signed-off-by: Csaba Repasi [email protected]
1 parent 63e8287 commit 3c1d0e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/jerry/math-pow.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
assert ( isNaN (Math.pow (0.0 /* any number */, NaN)) );
1616
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 );
1818
assert ( isNaN (Math.pow (NaN, 1.0 /* any non-zero number */)) );
1919
assert ( Math.pow (2.0, Infinity) === Infinity );
2020
assert ( Math.pow (2.0, -Infinity) === 0.0 );
@@ -27,17 +27,17 @@ assert ( Math.pow (Infinity, -1.0) === 0 );
2727
assert ( Math.pow (-Infinity, 3.0) === -Infinity );
2828
assert ( Math.pow (-Infinity, 2.0) === Infinity );
2929
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 );
3131
assert ( Math.pow (-Infinity, -2.0) === 0.0 );
3232
assert ( Math.pow (-Infinity, -2.5) === 0.0 );
3333
assert ( Math.pow (0.0, 1.2) === 0.0 );
3434
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 );
4141
assert ( isNaN (Math.pow (-3, 2.5)) );
4242

4343
assert(Math.pow (-2, 2) === 4);

0 commit comments

Comments
 (0)