Check source loctaion in the InhertanceSpecifier test

This commit is contained in:
Alex Sinyagin 2016-08-16 14:39:08 +00:00
parent 40ca2c9e97
commit af64219e17

View File

@ -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");
}