Index: test/mjsunit/math-pow.js |
diff --git a/test/mjsunit/math-pow.js b/test/mjsunit/math-pow.js |
index 96d4eb4fdd0aff7c043da5b66d9d94d48dc8c965..e2b2c78613af99c2e95105ada8b86a29354858c5 100644 |
--- a/test/mjsunit/math-pow.js |
+++ b/test/mjsunit/math-pow.js |
@@ -140,6 +140,20 @@ function test() { |
assertEquals(NaN, Math.pow(-16, 0.5)); |
assertEquals(0.25, Math.pow(16, -0.5)); |
assertEquals(NaN, Math.pow(-16, -0.5)); |
+ |
+ // Tests from Mozilla 15.8.2.13. |
+ assertEquals(2, Math.pow.length); |
+ assertEquals(NaN, Math.pow()); |
+ assertEquals(1, Math.pow(null, null)); |
+ assertEquals(NaN, Math.pow(void 0, void 0)); |
+ assertEquals(1, Math.pow(true, false)); |
+ assertEquals(0, Math.pow(false, true)); |
+ assertEquals(Infinity, Math.pow(-Infinity, Infinity)); |
+ assertEquals(0, Math.pow(-Infinity, -Infinity)); |
+ assertEquals(1, Math.pow(0, 0)); |
+ assertEquals(0, Math.pow(0, Infinity)); |
+ assertEquals(NaN, Math.pow(NaN, 0.5)); |
+ assertEquals(NaN, Math.pow(NaN, -0.5)); |
// Tests from Sputnik S8.5_A13_T1. |
assertTrue( |