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

Method testNumber

test/serializer.cpp:287–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 }
286
287 void
288 testNumber()
289 {
290 // VFALCO These don't perfectly round-trip,
291 // because the representations are not exact.
292 // The test needs to do a better job of comparison.
293
294 check("-999999999999999999999");
295 check("-100000000000000000009");
296 check("-10000000000000000000");
297 //check("-9223372036854775809");
298 check("-9223372036854775808");
299 check("-9223372036854775807");
300 check("-999999999999999999");
301 check("-99999999999999999");
302 check("-9999999999999999");
303 check("-999999999999999");
304 check("-99999999999999");
305 check("-9999999999999");
306 check("-999999999999");
307 check("-99999999999");
308 check("-9999999999");
309 check("-999999999");
310 check("-99999999");
311 check("-9999999");
312 check("-999999");
313 check("-99999");
314 check("-9999");
315 check("-999");
316 check("-99");
317 check("-9");
318 check("-0");
319 check("-0.0");
320 check( "0");
321 check( "9");
322 check( "99");
323 check( "999");
324 check( "9999");
325 check( "99999");
326 check( "999999");
327 check( "9999999");
328 check( "99999999");
329 check( "999999999");
330 check( "9999999999");
331 check( "99999999999");
332 check( "999999999999");
333 check( "9999999999999");
334 check( "99999999999999");
335 check( "999999999999999");
336 check( "9999999999999999");
337 check( "99999999999999999");
338 check( "999999999999999999");
339 check( "9223372036854775807");
340 check( "9223372036854775808");
341 check( "9999999999999999999");
342 check( "18446744073709551615");
343 //check( "18446744073709551616");
344 check( "99999999999999999999");

Callers

nothing calls this directly

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected