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

Method grind_double

test/stream_parser.cpp:464–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462 }
463
464 static
465 void
466 grind_double( string_view s, double v, parse_options const& po = {} )
467 {
468 grind(s,
469 [v](value const& jv, const parse_options&)
470 {
471 if(! BOOST_TEST(jv.is_double()))
472 return;
473 if( std::isnan(v) )
474 BOOST_TEST( std::isnan(jv.get_double()) );
475 else
476 BOOST_TEST( jv.get_double() == v );
477 },
478 po);
479 }
480
481 //------------------------------------------------------
482

Callers

nothing calls this directly

Calls 2

is_doubleMethod · 0.80
get_doubleMethod · 0.80

Tested by

no test coverage detected