aboutsummaryrefslogtreecommitdiff
path: root/src/univalue
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-04-16 16:39:25 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-04-16 16:35:12 +0200
commitfa4c69669e079c38844ecea1ad3394aae3702ae1 (patch)
tree648fad49fe4f62b6a41c27e884681369ffebd735 /src/univalue
parent07720b1cdd77399f32124641dbe1dd267eb0cf8b (diff)
test: Fix failing univalue float test
Diffstat (limited to 'src/univalue')
-rw-r--r--src/univalue/test/object.cpp2
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