Skip to content

Commit ab9cf32

Browse files
Add tests for paths
1 parent 51b4005 commit ab9cf32

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/test/rustdoc-js-std/parser-errors.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ const QUERY = [
2828
"fn:aaaaa<>b",
2929
"->a<>b",
3030
"a<->",
31+
"a:: a",
32+
"a ::a",
3133
];
3234

3335
const PARSED = [
@@ -292,4 +294,22 @@ const PARSED = [
292294
userQuery: 'a<->',
293295
error: 'Unexpected `-` after `<`',
294296
},
297+
{
298+
elems: [],
299+
foundElems: 0,
300+
original: 'a:: a',
301+
returned: [],
302+
typeFilter: -1,
303+
userQuery: 'a:: a',
304+
error: 'Paths cannot end with `::`',
305+
},
306+
{
307+
elems: [],
308+
foundElems: 0,
309+
original: 'a ::a',
310+
returned: [],
311+
typeFilter: -1,
312+
userQuery: 'a ::a',
313+
error: 'Paths cannot start with `::`',
314+
},
295315
];

0 commit comments

Comments
 (0)