From: Sebastian Harl Date: Mon, 6 Jan 2014 11:03:47 +0000 (+0100) Subject: parser_test: Test partial query parsing. X-Git-Tag: sysdb-0.1.0~248 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2fa67d9a3f04e8dc5867f57532ecfff3129abe82;p=sysdb.git parser_test: Test partial query parsing. --- 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 }, };