Skip to content

Commit 2317ad7

Browse files
committed
test: Re-introduce JSON pretty printing in test builder
1 parent b0ff857 commit 2317ad7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/script_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,11 @@ BOOST_AUTO_TEST_CASE(script_build)
585585

586586
for (unsigned int idx = 0; idx < json_good.size(); idx++) {
587587
const UniValue& tv = json_good[idx];
588-
tests_good.insert(tv.get_array().write());
588+
tests_good.insert(tv.get_array().write(1,4));
589589
}
590590
for (unsigned int idx = 0; idx < json_bad.size(); idx++) {
591591
const UniValue& tv = json_bad[idx];
592-
tests_bad.insert(tv.get_array().write());
592+
tests_bad.insert(tv.get_array().write(1,4));
593593
}
594594
}
595595

@@ -608,7 +608,7 @@ BOOST_AUTO_TEST_CASE(script_build)
608608
}
609609
BOOST_FOREACH(TestBuilder& test, bad) {
610610
test.Test(false);
611-
std::string str = test.GetJSON().write();
611+
std::string str = test.GetJSON().write(1,4);
612612
#ifndef UPDATE_JSON_TESTS
613613
if (tests_bad.count(str) == 0) {
614614
BOOST_CHECK_MESSAGE(false, "Missing auto script_invalid test: " + test.GetComment());

0 commit comments

Comments
 (0)