Merge pull request #2332 from ethereum/fixLiteralPrint

fix Literalprint
This commit is contained in:
chriseth
2017-06-06 15:09:48 +02:00
committed by GitHub
3 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ BOOST_AUTO_TEST_CASE(non_utf8)
Json::Value literal = astJson["children"][0]["children"][0]["children"][2]["children"][0]["children"][1];
BOOST_CHECK_EQUAL(literal["name"], "Literal");
BOOST_CHECK_EQUAL(literal["attributes"]["hexvalue"], "ff");
BOOST_CHECK_EQUAL(literal["attributes"]["token"], Json::nullValue);
BOOST_CHECK_EQUAL(literal["attributes"]["token"], "string");
BOOST_CHECK_EQUAL(literal["attributes"]["value"], Json::nullValue);
BOOST_CHECK(literal["attributes"]["type"].asString().find("invalid") != string::npos);
}