index 85265147b1bebdb86ad842ba0a180ef6560faa01..71fc1dbd219b0b382b615897670af5d573d35b9f 100644 (file)
--- a/t/frontend/parser_test.c
+++ b/t/frontend/parser_test.c
{ ";;", -1, 0, 0 },
/* valid commands */
- { "FETCH host", -1, 1, CONNECTION_FETCH },
+ { "FETCH 'host'", -1, 1, CONNECTION_FETCH },
{ "LIST", -1, 1, CONNECTION_LIST },
{ "LIST -- comment", -1, 1, CONNECTION_LIST },
{ "LIST;", -1, 1, CONNECTION_LIST },
/* syntax errors */
{ "INVALID", -1, -1, 0 },
- { "FETCH $%&#", -1, -1, 0 },
+ { "FETCH host", -1, -1, 0 },
{ "LIST; INVALID", 8, -1, 0 },
{ "/* some incomplete", -1, -1, 0 },
};
{ "", -1, -1 },
/* valid expressions */
- { "localhost", -1, 0 },
- { "localhost -- foo", -1, 0 },
- { "localhost <garbage>", 9, 0 },
+ { "'localhost'", -1, 0 },
+ { "'localhost' -- foo", -1, 0 },
+ { "'host' <garbage>", 6, 0 },
/* syntax errors */
{ "LIST", -1, -1 },