From 2fa67d9a3f04e8dc5867f57532ecfff3129abe82 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 6 Jan 2014 12:03:47 +0100 Subject: [PATCH] parser_test: Test partial query parsing. --- t/frontend/parser_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/frontend/parser_test.c b/t/frontend/parser_test.c index 8270cb1..d059474 100644 --- a/t/frontend/parser_test.c +++ b/t/frontend/parser_test.c @@ -50,6 +50,7 @@ START_TEST(test_parse) /* valid commands */ { "LIST", -1, 1 }, { "LIST;", -1, 1 }, + { "LIST; INVALID", 5, 1 }, /* comments */ { "/* some comment */", -1, 0 }, @@ -57,6 +58,7 @@ START_TEST(test_parse) /* syntax errors */ { "INVALID", -1, -1 }, + { "LIST; INVALID", 8, -1 }, { "/* some incomplete", -1, -1 }, }; -- 2.30.2