aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools/isoltest.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-18 17:57:15 +0800
committerGitHub <noreply@github.com>2018-05-18 17:57:15 +0800
commit4d7b092cb4eabf7722b1161fda225e36097debc1 (patch)
tree656cd9480ea57aec1e34a057dc7002ffb4c4ac36 /test/tools/isoltest.cpp
parent4aa2f036ce74d9a210e12ac4df928a5ecb006e28 (diff)
parent0bed065ee73c467014d5464a7d9dc2596d6e7dfc (diff)
downloaddexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar
dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.gz
dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.bz2
dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.lz
dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.xz
dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.zst
dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.zip
Merge pull request #4150 from ethereum/isoltest
Tidy up tests to always have closing braces on the proper line
Diffstat (limited to 'test/tools/isoltest.cpp')
-rw-r--r--test/tools/isoltest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tools/isoltest.cpp b/test/tools/isoltest.cpp
index 7a147bd0..100fcbf0 100644
--- a/test/tools/isoltest.cpp
+++ b/test/tools/isoltest.cpp
@@ -99,8 +99,8 @@ void SyntaxTestTool::printContract() const
for (auto const& error: m_test->errorList())
if (error.locationStart >= 0 && error.locationEnd >= 0)
{
- assert(static_cast<size_t>(error.locationStart) < source.length());
- assert(static_cast<size_t>(error.locationEnd) < source.length());
+ assert(static_cast<size_t>(error.locationStart) <= source.length());
+ assert(static_cast<size_t>(error.locationEnd) <= source.length());
bool isWarning = error.type == "Warning";
for (int i = error.locationStart; i < error.locationEnd; i++)
if (isWarning)