Lines Matching refs:testRound
31 function testRound(expect, input) { function
53 testRound(0, 0);
54 testRound(-0, -0);
55 testRound(Infinity, Infinity);
56 testRound(-Infinity, -Infinity);
57 testRound(NaN, NaN);
74 testRound(1, 0.5);
75 testRound(1, 0.7);
76 testRound(1, 1);
77 testRound(1, 1.1);
78 testRound(1, 1.49999);
79 testRound(-0, -0.5);
80 testRound(-1, -0.5000000000000001);
81 testRound(-1, -0.7);
82 testRound(-1, -1);
83 testRound(-1, -1.1);
84 testRound(-1, -1.49999);
85 testRound(-1, -1.5);
87 testRound(9007199254740990, 9007199254740990);
88 testRound(9007199254740991, 9007199254740991);
89 testRound(-9007199254740990, -9007199254740990);
90 testRound(-9007199254740991, -9007199254740991);
91 testRound(Number.MAX_VALUE, Number.MAX_VALUE);
92 testRound(-Number.MAX_VALUE, -Number.MAX_VALUE);
93 testRound(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER);
94 testRound(Number.MAX_SAFE_INTEGER + 1, Number.MAX_SAFE_INTEGER + 1);
95 testRound(Number.MAX_SAFE_INTEGER + 2, Number.MAX_SAFE_INTEGER + 2);
96 testRound(Number.MAX_SAFE_INTEGER + 3, Number.MAX_SAFE_INTEGER + 3);
97 testRound(Number.MAX_SAFE_INTEGER + 4, Number.MAX_SAFE_INTEGER + 4);
98 testRound(Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER);
99 testRound(Number.MIN_SAFE_INTEGER - 1, Number.MIN_SAFE_INTEGER - 1);
100 testRound(Number.MIN_SAFE_INTEGER - 2, Number.MIN_SAFE_INTEGER - 2);
101 testRound(Number.MIN_SAFE_INTEGER - 3, Number.MIN_SAFE_INTEGER - 3);
103 testRound(536870911, 536870910.5);
104 testRound(536870911, 536870911);
105 testRound(536870911, 536870911.4);
106 testRound(536870912, 536870911.5);
107 testRound(536870912, 536870912);
108 testRound(536870912, 536870912.4);
109 testRound(536870913, 536870912.5);
110 testRound(536870913, 536870913);
111 testRound(536870913, 536870913.4);
112 testRound(1073741823, 1073741822.5);
113 testRound(1073741823, 1073741823);
114 testRound(1073741823, 1073741823.4);
115 testRound(1073741824, 1073741823.5);
116 testRound(1073741824, 1073741824);
117 testRound(1073741824, 1073741824.4);
118 testRound(1073741825, 1073741824.5);
119 testRound(2147483647, 2147483646.5);
120 testRound(2147483647, 2147483647);
121 testRound(2147483647, 2147483647.4);
122 testRound(2147483648, 2147483647.5);
123 testRound(2147483648, 2147483648);
124 testRound(2147483648, 2147483648.4);
125 testRound(2147483649, 2147483648.5);
129 testRound(0, 0.4);
130 testRound(-0, -0.4);
131 testRound(-0, -0.5);
132 testRound(1, 0.6);
133 testRound(-1, -0.6);
134 testRound(2, 1.5);
135 testRound(2, 1.6);
136 testRound(-2, -1.6);
137 testRound(8640000000000000, 8640000000000000);
138 testRound(8640000000000001, 8640000000000001);
139 testRound(8640000000000002, 8640000000000002);
140 testRound(9007199254740990, 9007199254740990);
141 testRound(9007199254740991, 9007199254740991);
142 testRound(1.7976931348623157e+308, 1.7976931348623157e+308);
143 testRound(-8640000000000000, -8640000000000000);
144 testRound(-8640000000000001, -8640000000000001);
145 testRound(-8640000000000002, -8640000000000002);
146 testRound(-9007199254740990, -9007199254740990);
147 testRound(-9007199254740991, -9007199254740991);
148 testRound(-1.7976931348623157e+308, -1.7976931348623157e+308);
149 testRound(Infinity, Infinity);
150 testRound(-Infinity, -Infinity);
165 testRound(0, ulp);
166 testRound(0, max_denormal);
167 testRound(0, min_normal);
168 testRound(0, 0.49999999999999994);
169 testRound(1, 0.5);
170 testRound(Math.pow(2,52), max_fraction);
171 testRound(min_nonfraction, min_nonfraction);
172 testRound(max_non_infinite, max_non_infinite);
174 testRound(max_smi31, max_smi31 - 0.5);
175 testRound(max_smi31 + 1, max_smi31 + 0.5);
176 testRound(max_smi32, max_smi32 - 0.5);
177 testRound(max_smi32 + 1, max_smi32 + 0.5);
179 testRound(-0, -ulp);
180 testRound(-0, -max_denormal);
181 testRound(-0, -min_normal);
182 testRound(-0, -0.49999999999999994);
183 testRound(-0, -0.5);
184 testRound(-Math.pow(2,52)+1, -max_fraction);
185 testRound(-min_nonfraction, -min_nonfraction);
186 testRound(-max_non_infinite, -max_non_infinite);
188 testRound(min_smi31, min_smi31 - 0.5);
189 testRound(min_smi31 + 1, min_smi31 + 0.5);
190 testRound(min_smi32, min_smi32 - 0.5);
191 testRound(min_smi32 + 1, min_smi32 + 0.5);