Simplify expectIdentifierToken by using expectToken

This commit is contained in:
Alex Beregszaszi
2018-05-03 22:10:51 +01:00
parent 73c99d15cd
commit ed9f80690b
13 changed files with 16 additions and 33 deletions
+2 -2
View File
@@ -326,8 +326,8 @@ BOOST_AUTO_TEST_CASE(compilation_error)
{
BOOST_CHECK_EQUAL(
dev::jsonCompactPrint(error),
"{\"component\":\"general\",\"formattedMessage\":\"fileA:1:23: ParserError: Expected identifier, got 'RBrace'\\n"
"contract A { function }\\n ^\\n\",\"message\":\"Expected identifier, got 'RBrace'\","
"{\"component\":\"general\",\"formattedMessage\":\"fileA:1:23: ParserError: Expected token Identifier got 'RBrace'\\n"
"contract A { function }\\n ^\\n\",\"message\":\"Expected token Identifier got 'RBrace'\","
"\"severity\":\"error\",\"sourceLocation\":{\"end\":22,\"file\":\"fileA\",\"start\":22},\"type\":\"ParserError\"}"
);
}