Skip to content

Commit

Permalink
🚨 fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Dec 12, 2024
1 parent a26cf1e commit cb41608
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/src/unit-diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ TEST_CASE("Regression tests for extended diagnostics")
j.insert(jj.at("child").begin(), jj.at("child").end());

// Here assert is generated when construct new json
json k(j);
const json k(j);

CHECK(k.dump() == "{\"prop1\":\"prop1_value\",\"root\":\"root_str\"}");
}
}

0 comments on commit cb41608

Please sign in to comment.