Merge pull request #337 from AMDmi3/patch-1

Specify float constant as float
This commit is contained in:
Christopher Dunn 2015-08-21 20:45:37 -05:00
parent 8bdb07dd52
commit a7b80fea65

View File

@ -1257,7 +1257,7 @@ JSONTEST_FIXTURE(ValueTest, nonIntegers) {
// A 16-digit floating point number.
val = Json::Value(2199023255552000.0f);
JSONTEST_ASSERT_EQUAL(float(2199023255552000), val.asFloat());
JSONTEST_ASSERT_EQUAL(float(2199023255552000.0f), val.asFloat());
JSONTEST_ASSERT_STRING_EQUAL("2199023255552000",
normalizeFloatingPointStr(val.asString()));