diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-04-16 16:39:25 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-04-16 16:35:12 +0200 |
commit | fa4c69669e079c38844ecea1ad3394aae3702ae1 (patch) | |
tree | 648fad49fe4f62b6a41c27e884681369ffebd735 /src/univalue | |
parent | 07720b1cdd77399f32124641dbe1dd267eb0cf8b (diff) |
test: Fix failing univalue float test
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 |