more test cases for CBOR and msgpack

This commit is contained in:
Niels Lohmann 2016-12-11 00:05:29 +01:00
parent 41673e8fed
commit e8c903294f
2 changed files with 59 additions and 0 deletions

View file

@ -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));
}
}