✨ added start index for from_cbor and from_msgpack (#462)
This commit is contained in:
parent
4151f2d297
commit
83f1d2c81b
5 changed files with 57 additions and 23 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1039,6 +1039,10 @@ TEST_CASE("single MessagePack roundtrip")
|
|||
|
||||
// compare parsed JSON values
|
||||
CHECK(j1 == j2);
|
||||
|
||||
// check with different start index
|
||||
packed.insert(packed.begin(), 5, 0xff);
|
||||
CHECK(j1 == json::from_msgpack(packed, 5));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -385,7 +385,7 @@ TEST_CASE("regression tests")
|
|||
{
|
||||
return '.';
|
||||
}
|
||||
|
||||
|
||||
std::string do_grouping() const
|
||||
{
|
||||
return "\03";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue