Commit b25f8ac2 authored by Francis Dupont's avatar Francis Dupont
Browse files

[4088fd] Added more new unit tests

parent 7e64f067
......@@ -259,7 +259,10 @@ TEST_F(EvalContextTest, scanParseErrors) {
checkError("untyped:",
"<string>:1.9: syntax error, unexpected end of file");
checkError("0x", "<string>:1.1: syntax error, unexpected option code");
checkError("0abc",
"<string>:1.1: syntax error, unexpected option code");
checkError("===", "<string>:1.1-2: syntax error, unexpected ==");
checkError("option[123] < 'foo'", "<string>:1.13: Invalid character: <");
}
// Tests some parser error cases
......@@ -270,10 +273,6 @@ TEST_F(EvalContextTest, parseErrors) {
checkError("'foo''bar'",
"<string>:1.6-10: syntax error, unexpected constant string, "
"expecting ==");
checkError("0x",
"<string>:1.1: syntax error, unexpected option code");
checkError("0abc",
"<string>:1.1: syntax error, unexpected option code");
checkError("== 'ab'", "<string>:1.1-2: syntax error, unexpected ==");
checkError("'foo' ==",
"<string>:1.9: syntax error, unexpected end of file");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment