blob: 8a9cf78b4184792cc0d9976f67bbcb24ec73404c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
function f(y) {
return 2147483648 < y >>> 0
}
assertEq(f(0), false);
assertEq(f(-8), true);
function g(y) {
var t = Math.floor(y);
return 2147483648 < t+2;
}
assertEq(g(0), false)
assertEq(g(2147483647), true)
|