mirror of
https://github.com/nlohmann/json.git
synced 2026-02-28 22:36:25 +00:00
✅ add more tests for binary type
This commit is contained in:
@@ -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"}};
|
||||
|
||||
Reference in New Issue
Block a user