From af64219e17f2a01c1a27e19873ab6b03bfd01bfd Mon Sep 17 00:00:00 2001 From: Alex Sinyagin Date: Tue, 16 Aug 2016 14:39:08 +0000 Subject: Check source loctaion in the InhertanceSpecifier test --- test/libsolidity/ASTJSON.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test/libsolidity') 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"); } -- cgit