Skip to content

Commit 5c6c1e1

Browse files
Add test to ensure that keywords in path are working
1 parent 299e8ee commit 5c6c1e1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/test/rustdoc-js-std/parser-paths.js

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const QUERY = ['A::B', 'A::B,C', 'A::B<f>,C'];
1+
const QUERY = ['A::B', 'A::B,C', 'A::B<f>,C', 'mod::a'];
22

33
const PARSED = [
44
{
@@ -72,4 +72,19 @@ const PARSED = [
7272
userQuery: 'a::b<f>,c',
7373
error: null,
7474
},
75+
{
76+
elems: [{
77+
name: "mod::a",
78+
fullPath: ["mod", "a"],
79+
pathWithoutLast: ["mod"],
80+
pathLast: "a",
81+
generics: [],
82+
}],
83+
foundElems: 1,
84+
original: "mod::a",
85+
returned: [],
86+
typeFilter: -1,
87+
userQuery: "mod::a",
88+
error: null,
89+
},
7590
];

0 commit comments

Comments
 (0)