Add parser tests
This commit is contained in:
parent
7cefee027a
commit
f5833e759e
10 changed files with 643 additions and 6 deletions
43
src/test/rustdoc-js-std/parser-errors.js
Normal file
43
src/test/rustdoc-js-std/parser-errors.js
Normal file
|
@ -0,0 +1,43 @@
|
|||
const QUERY = ['<"P">', '"P" "P"', 'P "P"'];
|
||||
|
||||
const PARSED = [
|
||||
{
|
||||
args: [],
|
||||
elemName: null,
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
id: "<\"P\">",
|
||||
nameSplit: null,
|
||||
original: "<\"P\">",
|
||||
returned: [],
|
||||
typeFilter: null,
|
||||
val: "<\"p\">",
|
||||
error: "`\"` cannot be used in generics",
|
||||
},
|
||||
{
|
||||
args: [],
|
||||
elemName: null,
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
id: "\"P\" \"P\"",
|
||||
nameSplit: null,
|
||||
original: "\"P\" \"P\"",
|
||||
returned: [],
|
||||
typeFilter: null,
|
||||
val: "\"p\" \"p\"",
|
||||
error: "Cannot have more than one literal search element",
|
||||
},
|
||||
{
|
||||
args: [],
|
||||
elemName: null,
|
||||
elems: [],
|
||||
foundElems: 0,
|
||||
id: "P \"P\"",
|
||||
nameSplit: null,
|
||||
original: "P \"P\"",
|
||||
returned: [],
|
||||
typeFilter: null,
|
||||
val: "p \"p\"",
|
||||
error: "Cannot use literal search when there is more than one element",
|
||||
},
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue