diff options
author | chriseth <chris@ethereum.org> | 2018-12-19 19:22:19 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-19 21:59:29 +0800 |
commit | 4c7151e57f90c2b0d7a47ff7d6470da54bae00f0 (patch) | |
tree | b11479b5aed528bfb652775f326a93e6b32afbe6 /test/libsolidity/LibSolc.cpp | |
parent | 1bf396af78766cb7d61c0ea3d52915231b3407ed (diff) | |
download | dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar.gz dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar.bz2 dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar.lz dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar.xz dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.tar.zst dexon-solidity-4c7151e57f90c2b0d7a47ff7d6470da54bae00f0.zip |
Do not include empty JSON objects in output.
Diffstat (limited to 'test/libsolidity/LibSolc.cpp')
-rw-r--r-- | test/libsolidity/LibSolc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/LibSolc.cpp b/test/libsolidity/LibSolc.cpp index 09c08700..ec97f22f 100644 --- a/test/libsolidity/LibSolc.cpp +++ b/test/libsolidity/LibSolc.cpp @@ -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() |