diff options
author | chriseth <c@ethdev.com> | 2016-11-11 22:24:08 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:19 +0800 |
commit | 739dabff8ba8b4a91100c1612a0ac2faf0ef78b5 (patch) | |
tree | ed61ed1484c60459c530b634023b37a4df319b0f | |
parent | 7a292c9a05eb38f10f6e619db0805105433fda30 (diff) | |
download | dexon-solidity-739dabff8ba8b4a91100c1612a0ac2faf0ef78b5.tar dexon-solidity-739dabff8ba8b4a91100c1612a0ac2faf0ef78b5.tar.gz dexon-solidity-739dabff8ba8b4a91100c1612a0ac2faf0ef78b5.tar.bz2 dexon-solidity-739dabff8ba8b4a91100c1612a0ac2faf0ef78b5.tar.lz dexon-solidity-739dabff8ba8b4a91100c1612a0ac2faf0ef78b5.tar.xz dexon-solidity-739dabff8ba8b4a91100c1612a0ac2faf0ef78b5.tar.zst dexon-solidity-739dabff8ba8b4a91100c1612a0ac2faf0ef78b5.zip |
Fix tests.
-rw-r--r-- | test/libsolidity/Assembly.cpp | 6 | ||||
-rw-r--r-- | test/libsolidity/SolidityOptimizer.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index eddba5e1..e5ce691b 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -116,10 +116,10 @@ BOOST_AUTO_TEST_CASE(location_test) shared_ptr<string const> n = make_shared<string>(""); AssemblyItems items = compileContract(sourceCode); vector<SourceLocation> locations = - vector<SourceLocation>(18, SourceLocation(2, 75, n)) + - vector<SourceLocation>(31, SourceLocation(20, 72, n)) + + vector<SourceLocation>(16, SourceLocation(2, 75, n)) + + vector<SourceLocation>(27, SourceLocation(20, 72, n)) + vector<SourceLocation>{SourceLocation(42, 51, n), SourceLocation(65, 67, n)} + - vector<SourceLocation>(4, SourceLocation(58, 67, n)) + + vector<SourceLocation>(2, SourceLocation(58, 67, n)) + vector<SourceLocation>(3, SourceLocation(20, 72, n)); checkAssemblyLocations(items, locations); } diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp index 976976b2..4698e88c 100644 --- a/test/libsolidity/SolidityOptimizer.cpp +++ b/test/libsolidity/SolidityOptimizer.cpp @@ -370,7 +370,7 @@ BOOST_AUTO_TEST_CASE(successor_not_found_bug) // This bug was caused because MSVC chose to use the u256->bool conversion // instead of u256->unsigned char const* sourceCode = R"( - contract greeter { function greeter() {} } + contract greeter { function greeter() { uint x = 2; x ++; } } )"; compileBothVersions(sourceCode); } |