| 118 | json::parse(text); |
| 119 | } |
| 120 | JSONCONS_CATCH (const ser_error& e) |
| 121 | { |
| 122 | if (e.code() != ec) |
| 123 | { |
| 124 | std::cout << text << '\n'; |
| 125 | std::cout << e.code().value() << " " << e.what() << '\n'; |
| 126 | } |
| 127 | CHECK(ec == e.code()); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | void test_json_reader_ec(const std::string& text, const std::error_code& expected) |