mirror of
https://github.com/nlohmann/json.git
synced 2026-10-06 22:47:13 +00:00
Merge branch 'feature/nodiscard' into develop
This commit is contained in:
7 files changed
+57
-3
No files matched your search
@@ -1962,7 +1962,7 @@ TEST_CASE("all CBOR first bytes", "[!throws]")
|
||||
|
||||
try
|
||||
{
|
||||
json::from_cbor(std::vector<uint8_t>(1, byte));
|
||||
auto res = json::from_cbor(std::vector<uint8_t>(1, byte));
|
||||
}
|
||||
catch (const json::parse_error& e)
|
||||
{
|
||||
|
||||
@@ -305,7 +305,7 @@ TEST_CASE("README", "[hide]")
|
||||
// }
|
||||
|
||||
// calculate a JSON patch from two JSON values
|
||||
json::diff(j_result, j_original);
|
||||
auto res = json::diff(j_result, j_original);
|
||||
// [
|
||||
// { "op":" replace", "path": "/baz", "value": ["one", "two", "three"] },
|
||||
// { "op":"remove","path":"/hello" },
|
||||
|
||||
@@ -2128,7 +2128,7 @@ TEST_CASE("all UBJSON first bytes", "[!throws]")
|
||||
|
||||
try
|
||||
{
|
||||
json::from_ubjson(std::vector<uint8_t>(1, byte));
|
||||
auto res = json::from_ubjson(std::vector<uint8_t>(1, byte));
|
||||
}
|
||||
catch (const json::parse_error& e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user