mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check source loctaion in the InhertanceSpecifier test
This commit is contained in:
parent
40ca2c9e97
commit
af64219e17
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user