Commit ef3ad895 authored by Joshua C. Randall's avatar Joshua C. Randall

Adds (failing) test for small float serialisation

parent ec422459
...@@ -1160,6 +1160,12 @@ TEST_CASE("object inspection") ...@@ -1160,6 +1160,12 @@ TEST_CASE("object inspection")
CHECK(s.find("42.23") != std::string::npos); 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") SECTION("dump and non-ASCII characters")
{ {
CHECK(json("ä").dump() == "\"ä\""); CHECK(json("ä").dump() == "\"ä\"");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment