| 49 | } |
| 50 | |
| 51 | void check_insert_or_assign(json& example, const std::string& path, const json& value, const json& expected) |
| 52 | { |
| 53 | std::error_code ec; |
| 54 | jsonpointer::add(example, path, value, ec); |
| 55 | CHECK_FALSE(ec); |
| 56 | CHECK(expected == example); |
| 57 | } |
| 58 | |
| 59 | void check_replace(json& example, const std::string& path, const json& value, const json& expected) |
| 60 | { |
no test coverage detected