mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
LocationSetter in some extra places during Compiling
- Also adjusted the test, and fixed its error reporting
This commit is contained in:
parent
689750e114
commit
b480b76015
@ -76,7 +76,8 @@ void checkAssemblyLocations(AssemblyItems const& _items, std::vector<SourceLocat
|
|||||||
BOOST_CHECK_EQUAL(_items.size(), _locations.size());
|
BOOST_CHECK_EQUAL(_items.size(), _locations.size());
|
||||||
for (auto const& it: _items)
|
for (auto const& it: _items)
|
||||||
{
|
{
|
||||||
BOOST_CHECK_MESSAGE(it.getLocation() == _locations[i], std::string("Location mismatch for item" + i));
|
BOOST_CHECK_MESSAGE(it.getLocation() == _locations[i],
|
||||||
|
std::string("Location mismatch for assembly item ") + std::to_string(i));
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +109,7 @@ BOOST_AUTO_TEST_CASE(location_test)
|
|||||||
SourceLocation(0, 77, n), SourceLocation(0, 77, n),
|
SourceLocation(0, 77, n), SourceLocation(0, 77, n),
|
||||||
SourceLocation(0, 77, n), SourceLocation(0, 77, n),
|
SourceLocation(0, 77, n), SourceLocation(0, 77, n),
|
||||||
SourceLocation(0, 77, n),
|
SourceLocation(0, 77, n),
|
||||||
SourceLocation(18, 75, n), SourceLocation(18, 75, n),
|
SourceLocation(18, 75, n), SourceLocation(40, 49, n),
|
||||||
SourceLocation(61, 70, n), SourceLocation(61, 70, n), SourceLocation(61, 70, n),
|
SourceLocation(61, 70, n), SourceLocation(61, 70, n), SourceLocation(61, 70, n),
|
||||||
SourceLocation(), SourceLocation(),
|
SourceLocation(), SourceLocation(),
|
||||||
SourceLocation(61, 70, n), SourceLocation(61, 70, n), SourceLocation(61, 70, n)
|
SourceLocation(61, 70, n), SourceLocation(61, 70, n), SourceLocation(61, 70, n)
|
||||||
|
Loading…
Reference in New Issue
Block a user