From: Francis Dupont Date: Mon, 9 Nov 2015 12:19:14 +0000 (+0100) Subject: [4088fd] Added more new unit tests X-Git-Tag: trac4088fd_before_unquote~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b25f8ac286f4716232db8d86d7858624beb04826;p=thirdparty%2Fkea.git [4088fd] Added more new unit tests --- diff --git a/src/lib/eval/tests/context_unittest.cc b/src/lib/eval/tests/context_unittest.cc index 8cb6f6d31b..15a3cb3773 100644 --- a/src/lib/eval/tests/context_unittest.cc +++ b/src/lib/eval/tests/context_unittest.cc @@ -259,7 +259,10 @@ TEST_F(EvalContextTest, scanParseErrors) { checkError("untyped:", ":1.9: syntax error, unexpected end of file"); checkError("0x", ":1.1: syntax error, unexpected option code"); + checkError("0abc", + ":1.1: syntax error, unexpected option code"); checkError("===", ":1.1-2: syntax error, unexpected =="); + checkError("option[123] < 'foo'", ":1.13: Invalid character: <"); } // Tests some parser error cases @@ -270,10 +273,6 @@ TEST_F(EvalContextTest, parseErrors) { checkError("'foo''bar'", ":1.6-10: syntax error, unexpected constant string, " "expecting =="); - checkError("0x", - ":1.1: syntax error, unexpected option code"); - checkError("0abc", - ":1.1: syntax error, unexpected option code"); checkError("== 'ab'", ":1.1-2: syntax error, unexpected =="); checkError("'foo' ==", ":1.9: syntax error, unexpected end of file");