mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 23:52:15 +00:00
✅ more test cases for CBOR and msgpack
This commit is contained in:
@@ -850,6 +850,13 @@ TEST_CASE("MessagePack")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("from double")
|
||||
{
|
||||
auto given = std::vector<uint8_t>({0x19, 0x41, 0xc8, 0x00, 0x00});
|
||||
json j = json::from_msgpack(given);
|
||||
CHECK(j == json(25.0));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user