Skip to content

Commit b4e79f3

Browse files
bytzckwagerr-builder
authored andcommitted
Revert base58_tests, add in script_tests.cpp (dashpay#35)
1 parent 1ec39e3 commit b4e79f3

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/Makefile.test.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ BITCOIN_TESTS =\
8181
test/rpc_tests.cpp \
8282
test/sanity_tests.cpp \
8383
test/scheduler_tests.cpp \
84+
test/script_tests.cpp \
8485
test/script_p2sh_tests.cpp \
8586
test/script_p2pk_tests.cpp \
8687
test/script_p2pkh_tests.cpp \

src/test/base58_tests.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,7 @@
1212

1313
#include <boost/test/unit_test.hpp>
1414

15-
UniValue
16-
read_json(const std::string& jsondata)
17-
{
18-
UniValue v;
19-
20-
if (!v.read(jsondata) || !v.isArray())
21-
{
22-
BOOST_ERROR("Parse error.");
23-
return UniValue(UniValue::VARR);
24-
}
25-
return v.get_array();
26-
}
15+
extern UniValue read_json(const std::string& jsondata);
2716

2817
BOOST_FIXTURE_TEST_SUITE(base58_tests, BasicTestingSetup)
2918

0 commit comments

Comments
 (0)