1 2 3 4 5 6 7 8 9 10
function testDivision() { var a = 32768; var b; while (b !== 1) { b = a / 2; a = b; } return a; } assertEq(testDivision(), 1);