aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-02-11 16:38:02 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-02-11 17:33:28 +0100
commit2317ad7c56c6f5a55984459947f69cc3bfbe340a (patch)
tree4d39192a268a34917ddc29c83fde6aa305f1c960 /src/test
parentb0ff8572aeb8211ad30f24ca42d20a46debb5e9d (diff)
downloadbitcoin-2317ad7c56c6f5a55984459947f69cc3bfbe340a.tar.xz
test: Re-introduce JSON pretty printing in test builder
Diffstat (limited to 'src/test')
-rw-r--r--src/test/script_tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp
index 10175ebe8e..527bb52f8c 100644
--- a/src/test/script_tests.cpp
+++ b/src/test/script_tests.cpp
@@ -585,11 +585,11 @@ BOOST_AUTO_TEST_CASE(script_build)
for (unsigned int idx = 0; idx < json_good.size(); idx++) {
const UniValue& tv = json_good[idx];
- tests_good.insert(tv.get_array().write());
+ tests_good.insert(tv.get_array().write(1,4));
}
for (unsigned int idx = 0; idx < json_bad.size(); idx++) {
const UniValue& tv = json_bad[idx];
- tests_bad.insert(tv.get_array().write());
+ tests_bad.insert(tv.get_array().write(1,4));
}
}
@@ -608,7 +608,7 @@ BOOST_AUTO_TEST_CASE(script_build)
}
BOOST_FOREACH(TestBuilder& test, bad) {
test.Test(false);
- std::string str = test.GetJSON().write();
+ std::string str = test.GetJSON().write(1,4);
#ifndef UPDATE_JSON_TESTS
if (tests_bad.count(str) == 0) {
BOOST_CHECK_MESSAGE(false, "Missing auto script_invalid test: " + test.GetComment());