Update rustdoc search test to check !
This commit is contained in:
parent
45cdb2be10
commit
4ea149905b
3 changed files with 135 additions and 1 deletions
|
@ -35,6 +35,8 @@ const QUERY = [
|
|||
"a,:",
|
||||
" a<> :",
|
||||
"mod : :",
|
||||
"a!a",
|
||||
"a!!",
|
||||
];
|
||||
|
||||
const PARSED = [
|
||||
|
@ -362,4 +364,22 @@ const PARSED = [
|
|||
userQuery: "mod : :",
|
||||
error: 'Unexpected `:`',
|
||||
},
|
||||
{
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
original: "a!a",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "a!a",
|
||||
error: '`!` can only be at the end of an ident',
|
||||
},
|
||||
{
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
original: "a!!",
|
||||
returned: [],
|
||||
typeFilter: -1,
|
||||
userQuery: "a!!",
|
||||
error: 'Cannot have more than one `!` in an ident',
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue