| 413 | }; |
| 414 | |
| 415 | std::string JSONPrettyPrint(const UniValue& univalue) |
| 416 | { |
| 417 | std::string ret = univalue.write(4); |
| 418 | // Workaround for libunivalue pretty printer, which puts a space between commas and newlines |
| 419 | size_t pos = 0; |
| 420 | while ((pos = ret.find(" \n", pos)) != std::string::npos) { |
| 421 | ret.replace(pos, 2, "\n"); |
| 422 | pos++; |
| 423 | } |
| 424 | return ret; |
| 425 | } |
| 426 | } // namespace |
| 427 | |
| 428 | BOOST_FIXTURE_TEST_SUITE(script_tests, ScriptTest) |
no test coverage detected