diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-03-30 11:32:03 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-04-18 20:59:09 +0200 |
| commit | e03a9507471f5239d7cb51108f44994bc23bf234 (patch) | |
| tree | 023c9057d6ee5884ce2bf184d2546c938dfa0f92 /src/test/rustdoc-js-std/parser-errors.js | |
| parent | da829d8d9de73f196b17ab5e8b4a4c07863e30c9 (diff) | |
| download | rust-e03a9507471f5239d7cb51108f44994bc23bf234.tar.gz rust-e03a9507471f5239d7cb51108f44994bc23bf234.zip | |
Handle separators in their own functions and fix missing handling of tabs
Diffstat (limited to 'src/test/rustdoc-js-std/parser-errors.js')
| -rw-r--r-- | src/test/rustdoc-js-std/parser-errors.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc-js-std/parser-errors.js b/src/test/rustdoc-js-std/parser-errors.js index bd024a932a1..7b7ca4dbc35 100644 --- a/src/test/rustdoc-js-std/parser-errors.js +++ b/src/test/rustdoc-js-std/parser-errors.js @@ -27,6 +27,7 @@ const QUERY = [ "aaaaa<>b", "fn:aaaaa<>b", "->a<>b", + "a<->", ]; const PARSED = [ @@ -282,4 +283,13 @@ const PARSED = [ userQuery: '->a<>b', error: 'Expected `,` or ` `, found `b`', }, + { + elems: [], + foundElems: 0, + original: 'a<->', + returned: [], + typeFilter: -1, + userQuery: 'a<->', + error: 'Unexpected `-` after `<`', + }, ]; |
