mirror of
https://github.com/nlohmann/json.git
synced 2026-10-29 09:05:42 +00:00
💚 fix build
This commit is contained in:
1 file changed
+1
-1
@@ -81,6 +81,6 @@ TEST_CASE("Better diagnostics")
|
|||||||
json j;
|
json j;
|
||||||
j["a/b"]["m~n"] = 1;
|
j["a/b"]["m~n"] = 1;
|
||||||
std::string s;
|
std::string s;
|
||||||
CHECK_THROWS_WITH_AS(s = j["a/b"]["m~n"], "[json.exception.type_error.302] (/a~1b/m~0n) type must be string, but is number", json::type_error);
|
CHECK_THROWS_WITH_AS(s = j["a/b"]["m~n"].get<std::string>(), "[json.exception.type_error.302] (/a~1b/m~0n) type must be string, but is number", json::type_error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user