Bug 1795082 - Part 2/2: Drop post-processing from getURL() r=zombie
[gecko.git] / js / src / tests / test262 / built-ins / Math / cbrt / cbrt-specialValues.js
blobc31dc1a2a20710fb15b62a58c281c26fb4fa719e
1 // Copyright 2015 Microsoft Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
4 /*---
5 description: Math.cbrt with special values
6 es6id: 20.2.2.9
7 ---*/
9 assert.sameValue(Math.cbrt(NaN), Number.NaN,
10   "Math.cbrt produces incorrect output for NaN");
11 assert.sameValue(Math.cbrt(Number.NEGATIVE_INFINITY), Number.NEGATIVE_INFINITY,
12   "Math.cbrt should produce negative infinity for Number.NEGATIVE_INFINITY");
13 assert.sameValue(Math.cbrt(Number.POSITIVE_INFINITY), Number.POSITIVE_INFINITY,
14   "Math.cbrt should produce positive infinity for Number.POSITIVE_INFINITY");
15 assert.sameValue(1 / Math.cbrt(-0), Number.NEGATIVE_INFINITY,
16   "Math.cbrt should produce -0 for -0");
17 assert.sameValue(1 / Math.cbrt(0), Number.POSITIVE_INFINITY,
18   "Math.cbrt should produce +0 for +0");
20 reportCompare(0, 0);