Merge pull request #38 from wtsi-hgi/feature/small-float-serialization
Feature/small float serialization
This commit is contained in:
commit
a382a93a8e
2 changed files with 14 additions and 2 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…
Add table
Add a link
Reference in a new issue