Source code
Revision control
Copy as Markdown
Other Tools
function testDivisionWithNegative1() {
for (var i = 3; i >= 0; --i)
c = i / -1;
return 1/c;
}
assertEq(testDivisionWithNegative1(), -Infinity);
function testDivisionWithNegative1() {
for (var i = 3; i >= 0; --i)
c = i / -1;
return 1/c;
}
assertEq(testDivisionWithNegative1(), -Infinity);