michael@0: // Properties of Math.cbrt that are guaranteed by the spec. michael@0: michael@0: // If x is NaN, the result is NaN. michael@0: assertEq(Math.cbrt(NaN), NaN); michael@0: michael@0: // If x is +0, the result is +0. michael@0: assertEq(Math.cbrt(+0), +0); michael@0: michael@0: // If x is −0, the result is −0. michael@0: assertEq(Math.cbrt(-0), -0); michael@0: michael@0: // If x is +∞, the result is +∞. michael@0: assertEq(Math.cbrt(Infinity), Infinity); michael@0: michael@0: // If x is −∞, the result is −∞. michael@0: assertEq(Math.cbrt(-Infinity), -Infinity); michael@0: michael@0: michael@0: reportCompare(0, 0, "ok");