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

Function testPrecise

test/doc_parsing.cpp:292–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290//----------------------------------------------------------
291
292void
293testPrecise()
294{
295 // tag::doc_parsing_precise[]
296 parse_options opt;
297 opt.numbers = number_precision::precise;
298 value jv = parse( "1002.9111801605201", storage_ptr(), opt );
299 // end::doc_parsing_precise[]
300 (void)jv;
301 assert( jv == 1002.9111801605201 );
302}
303
304//----------------------------------------------------------
305

Callers 1

runMethod · 0.85

Calls 1

storage_ptrClass · 0.50

Tested by

no test coverage detected