finished the last of the warnings
This commit is contained in:
parent
5d511a6e96
commit
a0000c3235
6 changed files with 18 additions and 0 deletions
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue