| 594 | } |
| 595 | |
| 596 | void |
| 597 | testVectors() |
| 598 | { |
| 599 | #if 0 |
| 600 | check( |
| 601 | R"xx({ |
| 602 | "glossary": { |
| 603 | "title": "example glossary", |
| 604 | "GlossDiv": { |
| 605 | "title": "S", |
| 606 | "GlossList": { |
| 607 | "GlossEntry": { |
| 608 | "ID": "SGML", |
| 609 | "SortAs": "SGML", |
| 610 | "GlossTerm": "Standard Generalized Markup Language", |
| 611 | "Acronym": "SGML", |
| 612 | "Abbrev": "ISO 8879:1986", |
| 613 | "GlossDef": { |
| 614 | "para": "A meta-markup language, used to create markup languages such as DocBook.", |
| 615 | "GlossSeeAlso": ["GML", "XML"] |
| 616 | }, |
| 617 | "GlossSee": "markup" |
| 618 | } |
| 619 | } |
| 620 | } |
| 621 | } |
| 622 | })xx"); |
| 623 | #endif |
| 624 | |
| 625 | parse_vectors const pv; |
| 626 | for(auto const e : pv) |
| 627 | { |
| 628 | if(e.result != 'y') |
| 629 | continue; |
| 630 | // skip these failures for now |
| 631 | if( |
| 632 | e.name == "number" || |
| 633 | e.name == "number_real_exponent" || |
| 634 | e.name == "number_real_fraction_exponent" || |
| 635 | e.name == "number_simple_real" || |
| 636 | e.name == "object_extreme_numbers" || |
| 637 | e.name == "pass01" |
| 638 | ) |
| 639 | continue; |
| 640 | check(e.text, e.name); |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | std::string |
| 645 | to_ostream(value const& jv) |