MCPcopy Create free account
hub / github.com/boostorg/json / testDouble

Method testDouble

test/double.cpp:260–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 void
261 testDouble()
262 {
263 grind_double("-1.010", -1.01);
264 grind_double("-0.010", -0.01);
265 grind_double("-0.0", -0.0);
266 grind_double("-0e0", -0.0);
267 grind_double( "18.4", 18.4);
268 grind_double("-18.4", -18.4);
269 grind_double( "18446744073709551616", 1.8446744073709552e+19);
270 grind_double("-18446744073709551616", -1.8446744073709552e+19);
271 grind_double( "18446744073709551616.0", 1.8446744073709552e+19);
272 grind_double( "18446744073709551616.00009", 1.8446744073709552e+19);
273 grind_double( "1844674407370955161600000", 1.8446744073709552e+24);
274 grind_double("-1844674407370955161600000", -1.8446744073709552e+24);
275 grind_double( "1844674407370955161600000.0", 1.8446744073709552e+24);
276 grind_double( "1844674407370955161600000.00009", 1.8446744073709552e+24);
277 grind_double( "19700720435664.186294290058937593e13", 1.9700720435664185e+26);
278
279 grind_double( "1.0", 1.0);
280 grind_double( "1.1", 1.1);
281 grind_double( "1.11", 1.11);
282 grind_double( "1.11111", 1.11111);
283 grind_double( "11.1111", 11.1111);
284 grind_double( "111.111", 111.111);
285
286 fc("-0.9999999999999999999999");
287 fc("-0.9999999999999999");
288 fc("-0.9007199254740991");
289 fc("-0.999999999999999");
290 fc("-0.99999999999999");
291 fc("-0.9999999999999");
292 fc("-0.999999999999");
293 fc("-0.99999999999");
294 fc("-0.9999999999");
295 fc("-0.999999999");
296 fc("-0.99999999");
297 fc("-0.9999999");
298 fc("-0.999999");
299 fc("-0.99999");
300 fc("-0.9999");
301 fc("-0.8125");
302 fc("-0.999");
303 fc("-0.99");
304 fc("-1.0");
305 fc("-0.9");
306 fc("-0.0");
307 fc("0.0");
308 fc("0.9");
309 fc("0.99");
310 fc("0.999");
311 fc("0.8125");
312 fc("0.9999");
313 fc("0.99999");
314 fc("0.999999");
315 fc("0.9999999");
316 fc("0.99999999");
317 fc("0.999999999");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected