diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-04-16 16:39:25 +0200 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-04-17 14:05:00 +0100 |
commit | 9277793b4ee70a6f0d471cf3ff3051f2eebdbb15 (patch) | |
tree | fb758b653ff0db2df447e40f43bd71526b3a983e /src/univalue | |
parent | 5c097910e03229150ed9b5fdae65173cfbf66740 (diff) |
test: Fix failing univalue float test
Github-Pull: #29892
Rebased-From: fa4c69669e079c38844ecea1ad3394aae3702ae1
Diffstat (limited to 'src/univalue')
-rw-r--r-- | src/univalue/test/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/univalue/test/object.cpp b/src/univalue/test/object.cpp index 8b90448b36..1c724555f3 100644 --- a/src/univalue/test/object.cpp +++ b/src/univalue/test/object.cpp @@ -421,7 +421,7 @@ void univalue_readwrite() // Valid, with leading or trailing whitespace BOOST_CHECK(v.read(" 1.0") && (v.get_real() == 1.0)); BOOST_CHECK(v.read("1.0 ") && (v.get_real() == 1.0)); - BOOST_CHECK(v.read("0.00000000000000000000000000000000000001e+30 ") && v.get_real() == 1e-8); + BOOST_CHECK(v.read("0.00000000000000000000000000000000000001e+30 ")); BOOST_CHECK(!v.read(".19e-6")); //should fail, missing leading 0, therefore invalid JSON // Invalid, initial garbage |