✅ add more tests for binary type
This commit is contained in:
parent
5dec7166ea
commit
9eb19bcc27
3 changed files with 129 additions and 4 deletions
|
|
@ -763,6 +763,13 @@ TEST_CASE("different basic_json types conversions")
|
|||
CHECK(cj == "forty-two");
|
||||
}
|
||||
|
||||
SECTION("binary")
|
||||
{
|
||||
json j = json::binary_array({1, 2, 3});
|
||||
custom_json cj = j;
|
||||
CHECK(cj.get_binary() == j.get_binary());
|
||||
}
|
||||
|
||||
SECTION("object")
|
||||
{
|
||||
json j = {{"forty", "two"}};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue