From 96e5707478de6a0cefaf01506d3a3a6c10ee1278 Mon Sep 17 00:00:00 2001 From: bytzck <82664078+bytzck@users.noreply.github.com> Date: Tue, 22 Jun 2021 16:47:24 +0100 Subject: [PATCH] Revert base58_tests, add in script_tests.cpp (#35) --- src/Makefile.test.include | 1 + src/test/base58_tests.cpp | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 58af1a4f0cecce..45fdf2679ac7b9 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -81,6 +81,7 @@ BITCOIN_TESTS =\ test/rpc_tests.cpp \ test/sanity_tests.cpp \ test/scheduler_tests.cpp \ + test/script_tests.cpp \ test/script_p2sh_tests.cpp \ test/script_p2pk_tests.cpp \ test/script_p2pkh_tests.cpp \ diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp index 689893efe8e6e8..ac8cff51c8fff9 100644 --- a/src/test/base58_tests.cpp +++ b/src/test/base58_tests.cpp @@ -12,18 +12,7 @@ #include -UniValue -read_json(const std::string& jsondata) -{ - UniValue v; - - if (!v.read(jsondata) || !v.isArray()) - { - BOOST_ERROR("Parse error."); - return UniValue(UniValue::VARR); - } - return v.get_array(); -} +extern UniValue read_json(const std::string& jsondata); BOOST_FIXTURE_TEST_SUITE(base58_tests, BasicTestingSetup)