Just poking around right now.
This commit is contained in:
parent
9af8f7d094
commit
3fed057513
@ -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
|
||||
{
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user