✅ more test cases for CBOR and msgpack
This commit is contained in:
parent
41673e8fed
commit
e8c903294f
2 changed files with 59 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue