| 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 |
nothing calls this directly
no test coverage detected