Skip to content

Commit 7dc684f

Browse files
Add "vec new" test
1 parent b5f8258 commit 7dc684f

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

tests/rustdoc-js-std/vec-new.js

+20-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
const EXPECTED = {
2-
'query': 'Vec::new',
3-
'others': [
4-
{ 'path': 'std::vec::Vec', 'name': 'new' },
5-
{ 'path': 'alloc::vec::Vec', 'name': 'new' },
6-
{ 'path': 'std::vec::Vec', 'name': 'new_in' },
7-
{ 'path': 'alloc::vec::Vec', 'name': 'new_in' },
8-
],
9-
};
1+
const EXPECTED = [
2+
{
3+
'query': 'Vec::new',
4+
'others': [
5+
{ 'path': 'std::vec::Vec', 'name': 'new' },
6+
{ 'path': 'alloc::vec::Vec', 'name': 'new' },
7+
{ 'path': 'std::vec::Vec', 'name': 'new_in' },
8+
{ 'path': 'alloc::vec::Vec', 'name': 'new_in' },
9+
],
10+
},
11+
{
12+
'query': 'Vec new',
13+
'others': [
14+
{ 'path': 'std::vec::Vec', 'name': 'new' },
15+
{ 'path': 'alloc::vec::Vec', 'name': 'new' },
16+
{ 'path': 'std::vec::Vec', 'name': 'new_in' },
17+
{ 'path': 'alloc::vec::Vec', 'name': 'new_in' },
18+
],
19+
},
20+
];

0 commit comments

Comments
 (0)