mirror of
https://github.com/nlohmann/json.git
synced 2026-02-23 20:06:25 +00:00
Fix parent update for diagnostics with ordered_json (#2963)
🐛 fix parent update for diagnostics with ordered_json
This commit is contained in:
@@ -174,4 +174,14 @@ TEST_CASE("Better diagnostics")
|
||||
j_obj["key"] = j_arr;
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("Regression test for issue #2962 - JSON_DIAGNOSTICS assertion for ordered_json")
|
||||
{
|
||||
nlohmann::ordered_json j;
|
||||
nlohmann::ordered_json j2;
|
||||
const std::string value;
|
||||
j["first"] = value;
|
||||
j["second"] = value;
|
||||
j2["something"] = j;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user