Adds (failing) test for small float serialisation
This commit is contained in:
parent
ec42245951
commit
ef3ad895ae
1 changed files with 6 additions and 0 deletions
|
@ -1160,6 +1160,12 @@ TEST_CASE("object inspection")
|
|||
CHECK(s.find("42.23") != std::string::npos);
|
||||
}
|
||||
|
||||
SECTION("dump and small floating-point numbers")
|
||||
{
|
||||
auto s = json(1.23456e-78).dump();
|
||||
CHECK(s.find("1.23456e-78") != std::string::npos);
|
||||
}
|
||||
|
||||
SECTION("dump and non-ASCII characters")
|
||||
{
|
||||
CHECK(json("ä").dump() == "\"ä\"");
|
||||
|
|
Loading…
Reference in a new issue