mirror of
https://github.com/nlohmann/json.git
synced 2026-03-11 11:41:27 +00:00
finished the last of the warnings
This commit is contained in:
@@ -876,7 +876,9 @@ TEST_CASE("CBOR")
|
||||
{
|
||||
json j = json::from_cbor(std::vector<uint8_t>({0xf9, 0x7c, 0x00}));
|
||||
json::number_float_t d = j;
|
||||
DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wfloat-equal")
|
||||
CHECK(d == std::numeric_limits<json::number_float_t>::infinity());
|
||||
DOCTEST_GCC_SUPPRESS_WARNING_POP
|
||||
CHECK(j.dump() == "null");
|
||||
}
|
||||
|
||||
@@ -895,7 +897,9 @@ TEST_CASE("CBOR")
|
||||
{
|
||||
json j = json::from_cbor(std::vector<uint8_t>({0xf9, 0x3c, 0x00}));
|
||||
json::number_float_t d = j;
|
||||
DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wfloat-equal")
|
||||
CHECK(d == 1);
|
||||
DOCTEST_GCC_SUPPRESS_WARNING_POP
|
||||
}
|
||||
|
||||
SECTION("-2 (1 10000 0000000000)")
|
||||
|
||||
Reference in New Issue
Block a user