We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8642d98 commit cfa254eCopy full SHA for cfa254e
1 file changed
tests/unittest.cpp
@@ -1447,6 +1447,16 @@ TEST_CASE("json Incorrect move of wvalue class #953")
1447
}
1448
1449
1450
+TEST_CASE("CrowJson, SmallNumber #1042")
1451
+{
1452
+ crow::json::wvalue data;
1453
+ const double smallnumber = 1e-10;
1454
+ data["testValue"] = smallnumber;
1455
+ std::string text = data.dump( 4);
1456
+ const auto expected_text ="{\n \"testValue\": 1e-10\n}";
1457
+ REQUIRE(text==expected_text);
1458
+}
1459
+
1460
TEST_CASE("template_basic")
1461
{
1462
auto t = crow::mustache::compile(R"---(attack of {{name}})---");
0 commit comments