aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ASTJSONTest.cpp
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-04 01:41:35 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-04 02:35:50 +0800
commit55386ba130122f5f739f4b08f82436ebd27a2087 (patch)
tree8f9412f467747e4a4e59503586b3519e943c9fbb /test/libsolidity/ASTJSONTest.cpp
parentd923926ff7ceaad551fe76afb356266e28a2a1ea (diff)
downloaddexon-solidity-55386ba130122f5f739f4b08f82436ebd27a2087.tar.gz
dexon-solidity-55386ba130122f5f739f4b08f82436ebd27a2087.tar.zst
dexon-solidity-55386ba130122f5f739f4b08f82436ebd27a2087.zip
Extract AST JSON tests.
Diffstat (limited to 'test/libsolidity/ASTJSONTest.cpp')
-rw-r--r--test/libsolidity/ASTJSONTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/ASTJSONTest.cpp b/test/libsolidity/ASTJSONTest.cpp
index 239ef9ff..05839c1f 100644
--- a/test/libsolidity/ASTJSONTest.cpp
+++ b/test/libsolidity/ASTJSONTest.cpp
@@ -96,7 +96,7 @@ bool ASTJSONTest::run(ostream& _stream, string const& _linePrefix, bool const _f
for (size_t i = 0; i < m_sources.size(); i++)
{
c.addSource(m_sources[i].first, m_sources[i].second);
- sourceIndices[m_sources[i].first] = i;
+ sourceIndices[m_sources[i].first] = i + 1;
}
c.setEVMVersion(dev::test::Options::get().evmVersion());