diff options
author | Alex Sinyagin <sinyagin.alexander@gmail.com> | 2016-08-16 22:39:08 +0800 |
---|---|---|
committer | Alex Sinyagin <sinyagin.alexander@gmail.com> | 2016-08-18 20:29:59 +0800 |
commit | af64219e17f2a01c1a27e19873ab6b03bfd01bfd (patch) | |
tree | 65ec457cacca74ababd61f3cef28a051323643c1 | |
parent | 40ca2c9e977b98083efed96f031c298cf65d0893 (diff) | |
download | dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar.gz dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar.bz2 dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar.lz dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar.xz dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.tar.zst dexon-solidity-af64219e17f2a01c1a27e19873ab6b03bfd01bfd.zip |
Check source loctaion in the InhertanceSpecifier test
-rw-r--r-- | test/libsolidity/ASTJSON.cpp | 1 |
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"); } |