Fixed incorrect rounding for float values (fixes #588)

This commit is contained in:
Benoit Blanchon
2017-10-17 10:19:21 +02:00
parent d6e61cbcda
commit 591fe7e92b
3 changed files with 13 additions and 9 deletions

View File

@ -113,4 +113,8 @@ TEST_CASE("JsonWriter::writeFloat(float)") {
SECTION("999.9") { // issue #543
check<float>(999.9f, "999.9");
}
SECTION("24.3") { // # issue #588
check<float>(24.3f, "24.3");
}
}