diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-25 17:40:14 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-25 17:40:14 +0800 |
commit | b480b76015cff5c1b64747e2930b34e2aeb65a79 (patch) | |
tree | 272e73fffaad33db807a1e9c51df729aa30424e7 | |
parent | 689750e1146a4551426db0a48e87a891ede15417 (diff) | |
download | dexon-solidity-b480b76015cff5c1b64747e2930b34e2aeb65a79.tar dexon-solidity-b480b76015cff5c1b64747e2930b34e2aeb65a79.tar.gz dexon-solidity-b480b76015cff5c1b64747e2930b34e2aeb65a79.tar.bz2 dexon-solidity-b480b76015cff5c1b64747e2930b34e2aeb65a79.tar.lz dexon-solidity-b480b76015cff5c1b64747e2930b34e2aeb65a79.tar.xz dexon-solidity-b480b76015cff5c1b64747e2930b34e2aeb65a79.tar.zst dexon-solidity-b480b76015cff5c1b64747e2930b34e2aeb65a79.zip |
LocationSetter in some extra places during Compiling
- Also adjusted the test, and fixed its error reporting
-rw-r--r-- | Assembly.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Assembly.cpp b/Assembly.cpp index 021463e4..60f10d08 100644 --- a/Assembly.cpp +++ b/Assembly.cpp @@ -76,7 +76,8 @@ void checkAssemblyLocations(AssemblyItems const& _items, std::vector<SourceLocat BOOST_CHECK_EQUAL(_items.size(), _locations.size()); 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; } @@ -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(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(), SourceLocation(), SourceLocation(61, 70, n), SourceLocation(61, 70, n), SourceLocation(61, 70, n) |