aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-16 22:39:08 +0800
committerAlex Sinyagin <sinyagin.alexander@gmail.com>2016-08-18 20:29:59 +0800
commitaf64219e17f2a01c1a27e19873ab6b03bfd01bfd (patch)
tree65ec457cacca74ababd61f3cef28a051323643c1
parent40ca2c9e977b98083efed96f031c298cf65d0893 (diff)
downloaddexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar.gz
dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar.zst
dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.zip
Check source loctaion in the InhertanceSpecifier test
-rw-r--r--test/libsolidity/ASTJSON.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libsolidity/ASTJSON.cpp b/test/libsolidity/ASTJSON.cpp
index c252b133..2dcdf0b4 100644
--- a/test/libsolidity/ASTJSON.cpp
+++ b/test/libsolidity/ASTJSON.cpp
@@ -72,6 +72,7 @@ BOOST_AUTO_TEST_CASE(inheritance_specifier)
Json::Value astJson = ASTJsonConverter(c.ast("a"), sourceIndices).json();
BOOST_CHECK_EQUAL(astJson["children"][1]["attributes"]["name"], "C2");
BOOST_CHECK_EQUAL(astJson["children"][1]["children"][0]["name"], "Inheritance");
+ BOOST_CHECK_EQUAL(astJson["children"][1]["children"][0]["src"], "30:2:1");
BOOST_CHECK_EQUAL(astJson["children"][1]["children"][0]["children"][0]["name"], "UserDefinedTypeName");
BOOST_CHECK_EQUAL(astJson["children"][1]["children"][0]["children"][0]["attributes"]["name"], "C1");
}