aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/Metadata.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-20 17:52:41 +0800
committerchriseth <chris@ethereum.org>2017-09-22 22:17:28 +0800
commita844bbda48564d65033522a64cef30bff5dea973 (patch)
tree008494a0618051e4d71a2e28b94e436dc34ece6a /test/libsolidity/Metadata.cpp
parentab8ce58a3e522cfe8d0a36132e5e0b305d4ca052 (diff)
downloaddexon-solidity-a844bbda48564d65033522a64cef30bff5dea973.tar
dexon-solidity-a844bbda48564d65033522a64cef30bff5dea973.tar.gz
dexon-solidity-a844bbda48564d65033522a64cef30bff5dea973.tar.bz2
dexon-solidity-a844bbda48564d65033522a64cef30bff5dea973.tar.lz
dexon-solidity-a844bbda48564d65033522a64cef30bff5dea973.tar.xz
dexon-solidity-a844bbda48564d65033522a64cef30bff5dea973.tar.zst
dexon-solidity-a844bbda48564d65033522a64cef30bff5dea973.zip
Cleanup test helper macros.
Diffstat (limited to 'test/libsolidity/Metadata.cpp')
-rw-r--r--test/libsolidity/Metadata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/Metadata.cpp b/test/libsolidity/Metadata.cpp
index c46e3160..efe8faff 100644
--- a/test/libsolidity/Metadata.cpp
+++ b/test/libsolidity/Metadata.cpp
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE(metadata_stamp)
CompilerStack compilerStack;
compilerStack.addSource("", std::string(sourceCode));
compilerStack.setOptimiserSettings(dev::test::Options::get().optimize);
- ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed");
+ BOOST_REQUIRE_MESSAGE(compilerStack.compile(), "Compiling contract failed");
bytes const& bytecode = compilerStack.runtimeObject("test").bytecode;
std::string const& metadata = compilerStack.metadata("test");
BOOST_CHECK(dev::test::isValidMetadata(metadata));
@@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(metadata_stamp_experimental)
CompilerStack compilerStack;
compilerStack.addSource("", std::string(sourceCode));
compilerStack.setOptimiserSettings(dev::test::Options::get().optimize);
- ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed");
+ BOOST_REQUIRE_MESSAGE(compilerStack.compile(), "Compiling contract failed");
bytes const& bytecode = compilerStack.runtimeObject("test").bytecode;
std::string const& metadata = compilerStack.metadata("test");
BOOST_CHECK(dev::test::isValidMetadata(metadata));
@@ -106,7 +106,7 @@ BOOST_AUTO_TEST_CASE(metadata_relevant_sources)
)";
compilerStack.addSource("B", std::string(sourceCode));
compilerStack.setOptimiserSettings(dev::test::Options::get().optimize);
- ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed");
+ BOOST_REQUIRE_MESSAGE(compilerStack.compile(), "Compiling contract failed");
std::string const& serialisedMetadata = compilerStack.metadata("A");
BOOST_CHECK(dev::test::isValidMetadata(serialisedMetadata));
@@ -144,7 +144,7 @@ BOOST_AUTO_TEST_CASE(metadata_relevant_sources_imports)
)";
compilerStack.addSource("C", std::string(sourceCode));
compilerStack.setOptimiserSettings(dev::test::Options::get().optimize);
- ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed");
+ BOOST_REQUIRE_MESSAGE(compilerStack.compile(), "Compiling contract failed");
std::string const& serialisedMetadata = compilerStack.metadata("C");
BOOST_CHECK(dev::test::isValidMetadata(serialisedMetadata));