1
0
mirror of https://github.com/nlohmann/json synced 2024-11-30 15:40:07 +00:00

fixed a test case

This commit is contained in:
Niels Lohmann 2016-12-11 00:39:26 +01:00
parent e8c903294f
commit fdce38fa79

View File

@ -851,11 +851,11 @@ TEST_CASE("MessagePack")
}
}
SECTION("from double")
SECTION("from float32")
{
auto given = std::vector<uint8_t>({0x19, 0x41, 0xc8, 0x00, 0x00});
auto given = std::vector<uint8_t>({0xca, 0x41, 0xc8, 0x00, 0x01});
json j = json::from_msgpack(given);
CHECK(j == json(25.0));
CHECK(j.get<double>() == Approx(25.0000019073486));
}
}