diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-09 16:49:38 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-09 17:00:47 +0200 |
| commit | 9803651ee84545f8913b6fe9e76c8bd13603bb6e (patch) | |
| tree | b142f6884326782d5ba7bd11757477615e320238 /tests/rustdoc-js-std/parser-weird-queries.js | |
| parent | 6b0c7c4f01d3e6c90d10847471c7a2256346dd3e (diff) | |
| download | rust-9803651ee84545f8913b6fe9e76c8bd13603bb6e.tar.gz rust-9803651ee84545f8913b6fe9e76c8bd13603bb6e.zip | |
Update rustdoc-js* format
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
| -rw-r--r-- | tests/rustdoc-js-std/parser-weird-queries.js | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/rustdoc-js-std/parser-weird-queries.js b/tests/rustdoc-js-std/parser-weird-queries.js index dc1049a70bc..0e08eaf73c8 100644 --- a/tests/rustdoc-js-std/parser-weird-queries.js +++ b/tests/rustdoc-js-std/parser-weird-queries.js @@ -1,18 +1,10 @@ // This test is mostly to check that the parser still kinda outputs something // (and doesn't enter an infinite loop!) even though the query is completely // invalid. -const QUERY = [ - 'a b', - 'a b', - 'a,b(c)', - 'aaa,a', - ',,,,', - 'mod :', - 'mod\t:', -]; const PARSED = [ { + query: 'a b', elems: [ { name: "a", @@ -38,6 +30,7 @@ const PARSED = [ error: null, }, { + query: 'a b', elems: [ { name: "a", @@ -63,6 +56,7 @@ const PARSED = [ error: null, }, { + query: 'a,b(c)', elems: [], foundElems: 0, original: "a,b(c)", @@ -71,6 +65,7 @@ const PARSED = [ error: "Unexpected `(`", }, { + query: 'aaa,a', elems: [ { name: "aaa", @@ -96,6 +91,7 @@ const PARSED = [ error: null, }, { + query: ',,,,', elems: [], foundElems: 0, original: ",,,,", @@ -104,6 +100,7 @@ const PARSED = [ error: null, }, { + query: 'mod :', elems: [], foundElems: 0, original: 'mod :', @@ -112,6 +109,7 @@ const PARSED = [ error: "Unexpected `:` (expected path after type filter)", }, { + query: 'mod\t:', elems: [], foundElems: 0, original: 'mod\t:', |
