Skip to content

Commit 5f22b30

Browse files
Add search index test for primitive types
1 parent cac238e commit 5f22b30

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

src/test/rustdoc-js-std/primitive.js

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
const QUERY = [
2+
'i8',
3+
'u32',
4+
'str',
5+
'char',
6+
'unit',
7+
'tuple',
8+
'fn',
9+
];
10+
11+
const EXPECTED = [
12+
{
13+
'others': [
14+
{
15+
'path': 'std',
16+
'name': 'i8',
17+
'href': '../std/primitive.i8.html',
18+
},
19+
]
20+
},
21+
{
22+
'others': [
23+
{
24+
'path': 'std',
25+
'name': 'u32',
26+
'href': '../std/primitive.u32.html',
27+
},
28+
]
29+
},
30+
{
31+
'others': [
32+
{
33+
'path': 'std',
34+
'name': 'str',
35+
'href': '../std/primitive.str.html',
36+
},
37+
]
38+
},
39+
{
40+
'others': [
41+
{
42+
'path': 'std',
43+
'name': 'char',
44+
'href': '../std/primitive.char.html',
45+
},
46+
]
47+
},
48+
{
49+
'others': [
50+
{
51+
'path': 'std',
52+
'name': 'unit',
53+
'href': '../std/primitive.unit.html',
54+
},
55+
]
56+
},
57+
{
58+
'others': [
59+
{
60+
'path': 'std',
61+
'name': 'tuple',
62+
'href': '../std/primitive.tuple.html',
63+
},
64+
]
65+
},
66+
{
67+
'others': [
68+
{
69+
'path': 'std',
70+
'name': 'fn',
71+
'href': '../std/primitive.fn.html',
72+
},
73+
]
74+
},
75+
];

0 commit comments

Comments
 (0)