diff options
| -rw-r--r-- | src/test/rustdoc-js-std/parser-paths.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/test/rustdoc-js-std/parser-paths.js b/src/test/rustdoc-js-std/parser-paths.js index c8c7f21b9bd..9f823f9336a 100644 --- a/src/test/rustdoc-js-std/parser-paths.js +++ b/src/test/rustdoc-js-std/parser-paths.js @@ -1,4 +1,4 @@ -const QUERY = ['A::B', 'A::B,C', 'A::B<f>,C']; +const QUERY = ['A::B', 'A::B,C', 'A::B<f>,C', 'mod::a']; const PARSED = [ { @@ -72,4 +72,19 @@ const PARSED = [ userQuery: 'a::b<f>,c', error: null, }, + { + elems: [{ + name: "mod::a", + fullPath: ["mod", "a"], + pathWithoutLast: ["mod"], + pathLast: "a", + generics: [], + }], + foundElems: 1, + original: "mod::a", + returned: [], + typeFilter: -1, + userQuery: "mod::a", + error: null, + }, ]; |
