added regression test for #464

pull/540/head
Niels Lohmann 2017-03-28 23:28:54 +02:00
parent 62dfdf3f5d
commit b4dbebffcd
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
1 changed files with 8 additions and 0 deletions

View File

@ -837,6 +837,14 @@ TEST_CASE("regression tests")
CHECK(j["double_value"].is_number_float());
}
SECTION("issue #464 - VS2017 implicit to std::string conversion fix")
{
json v = "test";
std::string test;
test = v;
CHECK(v == "test");
}
SECTION("issue #465 - roundtrip error while parsing 1000000000000000010E5")
{
json j1 = json::parse("1000000000000000010E5");