Skip to content

Commit

Permalink
Add test to ensure that keywords in path are working
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 18, 2022
1 parent 299e8ee commit 5c6c1e1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/test/rustdoc-js-std/parser-paths.js
Original file line number Diff line number Diff line change
@@ -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 = [
{
Expand Down Expand Up @@ -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,
},
];

0 comments on commit 5c6c1e1

Please sign in to comment.