Code

parser_test: Test partial query parsing.
authorSebastian Harl <sh@tokkee.org>
Mon, 6 Jan 2014 11:03:47 +0000 (12:03 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 6 Jan 2014 11:03:47 +0000 (12:03 +0100)
t/frontend/parser_test.c

index 8270cb1d3ac73d13fce9372e9811380ce2d90707..d05947499c4fe50803f9bf8a3e3279515e54085e 100644 (file)
@@ -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 },
        };