mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix tests.
This commit is contained in:
parent
7a292c9a05
commit
739dabff8b
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user