Add tests for paths

This commit is contained in:
Guillaume Gomez 2022-04-08 14:35:45 +02:00
parent 51b4005003
commit ab9cf32131

View File

@ -28,6 +28,8 @@ const QUERY = [
"fn:aaaaa<>b",
"->a<>b",
"a<->",
"a:: a",
"a ::a",
];
const PARSED = [
@ -292,4 +294,22 @@ const PARSED = [
userQuery: 'a<->',
error: 'Unexpected `-` after `<`',
},
{
elems: [],
foundElems: 0,
original: 'a:: a',
returned: [],
typeFilter: -1,
userQuery: 'a:: a',
error: 'Paths cannot end with `::`',
},
{
elems: [],
foundElems: 0,
original: 'a ::a',
returned: [],
typeFilter: -1,
userQuery: 'a ::a',
error: 'Paths cannot start with `::`',
},
];