Lines Matching refs:asDouble
457 JSONTEST_ASSERT_EQUAL(0.0, null_.asDouble()); in JSONTEST_FIXTURE_LOCAL()
529 JSONTEST_ASSERT_EQUAL(1.0, true_.asDouble()); in JSONTEST_FIXTURE_LOCAL()
537 JSONTEST_ASSERT_EQUAL(0.0, false_.asDouble()); in JSONTEST_FIXTURE_LOCAL()
587 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
615 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
643 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
671 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
699 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
727 JSONTEST_ASSERT_EQUAL(0.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
754 JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
782 JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
810 JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
836 JSONTEST_ASSERT_EQUAL(-(1 << 20), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
864 JSONTEST_ASSERT_EQUAL(kint32max, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
888 JSONTEST_ASSERT_EQUAL(kint32min, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
916 JSONTEST_ASSERT_EQUAL(kuint32max, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
936 JSONTEST_ASSERT_EQUAL(double(kint64max), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
955 JSONTEST_ASSERT_EQUAL(double(kint64min), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
974 JSONTEST_ASSERT_EQUAL(double(kuint64max), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1000 JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1026 JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1052 JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1077 JSONTEST_ASSERT_EQUAL(-(Json::Int64(1) << 40), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1103 JSONTEST_ASSERT_EQUAL(double(kint64max), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1127 JSONTEST_ASSERT_EQUAL(uint64ToDouble(Json::UInt64(1) << 63), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1153 JSONTEST_ASSERT_EQUAL(double(kint64min), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1177 JSONTEST_ASSERT_EQUAL(-9223372036854775808.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1203 JSONTEST_ASSERT_EQUAL(uint64ToDouble(ten_to_19), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1225 JSONTEST_ASSERT_EQUAL(1e19, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1250 JSONTEST_ASSERT_EQUAL(uint64ToDouble(kuint64max), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1270 JSONTEST_ASSERT_EQUAL(18446744073709551616.0, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1302 JSONTEST_ASSERT_EQUAL(1.5, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1330 JSONTEST_ASSERT_EQUAL(-1.5, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1356 JSONTEST_ASSERT_EQUAL(2147483647.5, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1387 JSONTEST_ASSERT_EQUAL(-2147483648.5, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1416 JSONTEST_ASSERT_EQUAL(4294967295.5, val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1449 JSONTEST_ASSERT_EQUAL(double(1.2345678e300), val.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1761 JSONTEST_ASSERT_THROWS(strVal.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1762 JSONTEST_ASSERT_THROWS(objVal.asDouble()); in JSONTEST_FIXTURE_LOCAL()
1763 JSONTEST_ASSERT_THROWS(arrVal.asDouble()); in JSONTEST_FIXTURE_LOCAL()
3543 double n = root["a"].asDouble(); in JSONTEST_FIXTURE_LOCAL()
3595 root["posInf"].asDouble()); in JSONTEST_FIXTURE_LOCAL()
3597 root["NegInf"].asDouble()); in JSONTEST_FIXTURE_LOCAL()
3899 EqEval(69.69, [](const Json::Value& j) { return j.asDouble(); }); in JSONTEST_FIXTURE_LOCAL()