From b25f8ac286f4716232db8d86d7858624beb04826 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Mon, 9 Nov 2015 13:19:14 +0100 Subject: [PATCH] [4088fd] Added more new unit tests --- src/lib/eval/tests/context_unittest.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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"); -- 2.47.3