| 21 | json::parse(text); |
| 22 | } |
| 23 | JSONCONS_CATCH (const ser_error& e) |
| 24 | { |
| 25 | if (e.code() != ec) |
| 26 | { |
| 27 | std::cout << text << '\n'; |
| 28 | std::cout << e.code().value() << " " << e.what() << '\n'; |
| 29 | } |
| 30 | CHECK(ec == e.code()); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void test_parse_ec(const std::string& text, const std::error_code& expected) |