Lines Matching refs:testInt32
57 function testInt32(input, expected = input) {
62 testInt32(0.0, 0);
63 testInt32(-0.0, 0);
66 testInt32(-Math.pow(2, 31));
67 testInt32(Math.pow(2, 31) - 1);
70 testInt32(4294967297, 1);
71 testInt32(4294967296, 0);
72 testInt32(4294967295, -1);
73 testInt32(4294967296 * 5 + 3, 3);
76 testInt32(Number.MIN_SAFE_INTEGER, 1);
77 testInt32(Number.MAX_SAFE_INTEGER, -1);
80 testInt32(-Math.pow(2, 63) + (Math.pow(2, 9) + 1), 1024);
81 testInt32(Math.pow(2, 63) - (Math.pow(2, 9) + 1), -1024);
84 testInt32(-Number.MIN_VALUE, 0);
85 testInt32(Number.MIN_VALUE, 0);
86 testInt32(-Number.MAX_VALUE, 0);
87 testInt32(Number.MAX_VALUE, 0);
90 testInt32(-Math.pow(2, 63) + (Math.pow(2, 9)), 0);
91 testInt32(Math.pow(2, 63) - (Math.pow(2, 9)), 0);
94 testInt32(Number.POSITIVE_INFINITY, 0);
95 testInt32(Number.NEGATIVE_INFINITY, 0);
96 testInt32(Number.NaN, 0);