aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-15 03:31:20 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-15 03:31:20 +0800
commit3c4671a2dafc3fc29f5662203cceeb17a0d0e36b (patch)
treee7f946f6a89800083c97c1d8707518735ff1f17f /test/libsolidity
parent585b3ea3e3197e05349c13d24a3d99fba2fee887 (diff)
downloaddexon-solidity-3c4671a2dafc3fc29f5662203cceeb17a0d0e36b.tar
dexon-solidity-3c4671a2dafc3fc29f5662203cceeb17a0d0e36b.tar.gz
dexon-solidity-3c4671a2dafc3fc29f5662203cceeb17a0d0e36b.tar.bz2
dexon-solidity-3c4671a2dafc3fc29f5662203cceeb17a0d0e36b.tar.lz
dexon-solidity-3c4671a2dafc3fc29f5662203cceeb17a0d0e36b.tar.xz
dexon-solidity-3c4671a2dafc3fc29f5662203cceeb17a0d0e36b.tar.zst
dexon-solidity-3c4671a2dafc3fc29f5662203cceeb17a0d0e36b.zip
Match substring in tests to avoid metadata issues
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/StandardCompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/StandardCompiler.cpp b/test/libsolidity/StandardCompiler.cpp
index 6dd64130..35644a4d 100644
--- a/test/libsolidity/StandardCompiler.cpp
+++ b/test/libsolidity/StandardCompiler.cpp
@@ -201,12 +201,12 @@ BOOST_AUTO_TEST_CASE(basic_compilation)
BOOST_CHECK(dev::test::bytecodeSansMetadata(contract["evm"]["bytecode"]["object"].asString()) ==
"60606040523415600b57fe5b5b60338060196000396000f30060606040525bfe00");
BOOST_CHECK(contract["evm"]["assembly"].isString());
- BOOST_CHECK(contract["evm"]["assembly"].asString() ==
+ BOOST_CHECK(contract["evm"]["assembly"].asString().find(
" /* \"fileA\":0:14 contract A { } */\n mstore(0x40, 0x60)\n jumpi(tag_1, iszero(callvalue))\n"
" invalid\ntag_1:\ntag_2:\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x0\n codecopy\n 0x0\n"
" return\nstop\n\nsub_0: assembly {\n /* \"fileA\":0:14 contract A { } */\n"
" mstore(0x40, 0x60)\n tag_1:\n invalid\n\n"
- " auxdata: 0xa165627a7a72305820e4855da8c6a5e8a35933acba62e02f4842146bb9655b81cb06547caf8ea743b40029\n}\n");
+ " auxdata: 0xa165627a7a72305820") != std::string::npos);
BOOST_CHECK(contract["evm"]["gasEstimates"].isObject());
BOOST_CHECK(dev::jsonCompactPrint(contract["evm"]["gasEstimates"]) ==
"{\"creation\":{\"codeDepositCost\":\"10200\",\"executionCost\":\"62\",\"totalCost\":\"10262\"}}");