aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-06-06 21:09:48 +0800
committerGitHub <noreply@github.com>2017-06-06 21:09:48 +0800
commit1fba98496608db555cc29f62eb95c623ca0b4346 (patch)
tree625ba96b09871abbe32a4dbe5aa6b084d1f64336 /test
parent243e389fd7b3dc6c893c6021514d04f3b2bb035e (diff)
parent62eafdd0103a05d46295fc9b83039adb038683e8 (diff)
downloaddexon-solidity-1fba98496608db555cc29f62eb95c623ca0b4346.tar
dexon-solidity-1fba98496608db555cc29f62eb95c623ca0b4346.tar.gz
dexon-solidity-1fba98496608db555cc29f62eb95c623ca0b4346.tar.bz2
dexon-solidity-1fba98496608db555cc29f62eb95c623ca0b4346.tar.lz
dexon-solidity-1fba98496608db555cc29f62eb95c623ca0b4346.tar.xz
dexon-solidity-1fba98496608db555cc29f62eb95c623ca0b4346.tar.zst
dexon-solidity-1fba98496608db555cc29f62eb95c623ca0b4346.zip
Merge pull request #2332 from ethereum/fixLiteralPrint
fix Literalprint
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/ASTJSON.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/ASTJSON.cpp b/test/libsolidity/ASTJSON.cpp
index 8a790347..df7fac51 100644
--- a/test/libsolidity/ASTJSON.cpp
+++ b/test/libsolidity/ASTJSON.cpp
@@ -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);
}