Make json output a bit prettier.

This commit is contained in:
chriseth
2019-07-02 18:07:05 +02:00
parent 60525dbf52
commit 776fec1913
2 changed files with 14 additions and 10 deletions
+5 -5
View File
@@ -45,12 +45,12 @@ BOOST_AUTO_TEST_CASE(json_pretty_print)
BOOST_CHECK(
"{\n"
" \"1\" : 1,\n"
" \"2\" : \"2\",\n"
" \"3\" : \n"
" \"1\": 1,\n"
" \"2\": \"2\",\n"
" \"3\":\n"
" {\n"
" \"3.1\" : \"3.1\",\n"
" \"3.2\" : 2\n"
" \"3.1\": \"3.1\",\n"
" \"3.2\": 2\n"
" }\n"
"}" == jsonPrettyPrint(json));
}