|
|
@ -105,11 +105,11 @@ BOOST_AUTO_TEST_CASE(location_test) |
|
|
|
shared_ptr<string const> n = make_shared<string>("source"); |
|
|
|
AssemblyItems items = compileContract(sourceCode); |
|
|
|
vector<SourceLocation> locations = |
|
|
|
vector<SourceLocation>(11, SourceLocation(2, 75, n)) + |
|
|
|
vector<SourceLocation>(12, SourceLocation(20, 72, n)) + |
|
|
|
vector<SourceLocation>{SourceLocation(42, 51, n), SourceLocation(65, 67, n)} + |
|
|
|
vector<SourceLocation>(4, SourceLocation(58, 67, n)) + |
|
|
|
vector<SourceLocation>(3, SourceLocation(20, 72, n)); |
|
|
|
vector<SourceLocation>(11, SourceLocation(2, 75, n)) + |
|
|
|
vector<SourceLocation>(12, SourceLocation(20, 72, n)) + |
|
|
|
vector<SourceLocation>{SourceLocation(42, 51, n), SourceLocation(65, 67, n)} + |
|
|
|
vector<SourceLocation>(4, SourceLocation(58, 67, n)) + |
|
|
|
vector<SourceLocation>(3, SourceLocation(20, 72, n)); |
|
|
|
checkAssemblyLocations(items, locations); |
|
|
|
} |
|
|
|
|
|
|
|