From b4dbebffcdb98c91130133adb6583a1b5dafe6a6 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 28 Mar 2017 23:28:54 +0200 Subject: [PATCH] :white_check_mark: added regression test for #464 --- test/src/unit-regression.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/src/unit-regression.cpp b/test/src/unit-regression.cpp index f7f4c350e..a7b6e117a 100644 --- a/test/src/unit-regression.cpp +++ b/test/src/unit-regression.cpp @@ -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");