mirror of
https://github.com/nlohmann/json.git
synced 2026-11-18 05:00:19 +00:00
✨ added start index for from_cbor and from_msgpack (#462)
This commit is contained in:
5 files changed
+57
-23
No files matched your search
@@ -1184,6 +1184,10 @@ TEST_CASE("single CBOR roundtrip")
|
||||
|
||||
// compare parsed JSON values
|
||||
CHECK(j1 == j2);
|
||||
|
||||
// check with different start index
|
||||
packed.insert(packed.begin(), 5, 0xff);
|
||||
CHECK(j1 == json::from_cbor(packed, 5));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user