summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testNegZero1.js
blob: fe9aabdf2cb90fdd964c6faa6351b99e86adfc73 (plain)
1
2
3
4
5
6
7
8
9
function testNegZero1Helper(z) {
    for (let j = 0; j < 5; ++j) { z = -z; }
    return Math.atan2(0, -0) == Math.atan2(0, z);
}

var testNegZero1 = function() { return testNegZero1Helper(0); }
testNegZero1.name = 'testNegZero1';
testNegZero1Helper(1);
assertEq(testNegZero1(), true);