Fix some corner cases
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
// This test is mostly to check that the parser still kinda outputs something
|
||||
// (and doesn't enter an infinite loop!) even though the query is completely
|
||||
// invalid.
|
||||
const QUERY = ['a b', 'a b', 'a,b(c)', 'aaa,a'];
|
||||
const QUERY = [
|
||||
'a b',
|
||||
'a b',
|
||||
'a,b(c)',
|
||||
'aaa,a',
|
||||
',,,,',
|
||||
];
|
||||
|
||||
const PARSED = [
|
||||
{
|
||||
@@ -85,4 +91,13 @@ const PARSED = [
|
||||
userQuery: "aaa,a",
|
||||
error: null,
|
||||
},
|
||||
{
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
original: ",,,,",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: ",,,,",
|
||||
error: null,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user