Just poking around right now.

This commit is contained in:
Cameron T. Druyor 2016-04-28 17:49:14 -04:00
parent 9af8f7d094
commit 3fed057513
2 changed files with 8 additions and 2 deletions

View File

@ -6294,6 +6294,11 @@ class basic_json
<< std::fixed << m_value.number_float;
o << ss.str();
}
std::stringstream applesauce;
applesauce << o.rdbuf();
std::string s2 = applesauce.str();
if(s2.compare("2e01") == 0)
throw std::logic_error("found it");
}
else
{

View File

@ -12716,7 +12716,7 @@ TEST_CASE("regression tests")
json j2a = 2342e-2;
//issue #230
//json j2b = json::parse("2342e-2");
json j2b = json::parse("2342e-2");
json j3a = 10E3;
json j3b = json::parse("10E3");
@ -12740,7 +12740,7 @@ TEST_CASE("regression tests")
CHECK(j2a.dump() == "23.42");
//issue #230
//CHECK(j2b.dump() == "23.42");
CHECK(j2b.dump() == "23.42");
CHECK(j3a.dump() == "10000");
CHECK(j3b.dump() == "1E04");
@ -12757,4 +12757,5 @@ TEST_CASE("regression tests")
CHECK(dest == expected);
}
}