Do not include empty JSON objects in output.

This commit is contained in:
chriseth
2018-12-19 14:59:29 +01:00
parent 1bf396af78
commit 4c7151e57f
5 changed files with 16 additions and 10 deletions
+3 -1
View File
@@ -81,7 +81,9 @@ BOOST_AUTO_TEST_CASE(standard_compilation)
// Only tests some assumptions. The StandardCompiler is tested properly in another suite.
BOOST_CHECK(result.isMember("sources"));
BOOST_CHECK(result.isMember("contracts"));
// This used to test that it is a member, but we did not actually request any output,
// so there should not be a contract member.
BOOST_CHECK(!result.isMember("contracts"));
}
BOOST_AUTO_TEST_SUITE_END()