Skip to content

Commit db558b4

Browse files
committed
rustdoc: update search test cases
1 parent 59ba74c commit db558b4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tests/rustdoc-js-std/macro-print.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ const QUERY = 'macro:print';
33
const EXPECTED = {
44
'others': [
55
{ 'path': 'std', 'name': 'print' },
6-
{ 'path': 'std', 'name': 'eprint' },
76
{ 'path': 'std', 'name': 'println' },
7+
{ 'path': 'std', 'name': 'eprint' },
88
{ 'path': 'std', 'name': 'eprintln' },
99
],
1010
};

tests/rustdoc-js-std/typed-query.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const FILTER_CRATE = 'std';
66
const EXPECTED = {
77
'others': [
88
{ 'path': 'std', 'name': 'print' },
9-
{ 'path': 'std', 'name': 'eprint' },
109
{ 'path': 'std', 'name': 'println' },
10+
{ 'path': 'std', 'name': 'eprint' },
1111
{ 'path': 'std', 'name': 'eprintln' },
1212
{ 'path': 'std::pin', 'name': 'pin' },
1313
{ 'path': 'std::future', 'name': 'join' },

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const QUERY = 'Vec::new';
33
const EXPECTED = {
44
'others': [
55
{ 'path': 'std::vec::Vec', 'name': 'new' },
6-
{ 'path': 'std::vec::Vec', 'name': 'ne' },
7-
{ 'path': 'alloc::vec::Vec', 'name': 'ne' },
6+
{ 'path': 'alloc::vec::Vec', 'name': 'new' },
7+
{ 'path': 'std::vec::Vec', 'name': 'new_in' },
8+
{ 'path': 'alloc::vec::Vec', 'name': 'new_in' },
89
],
910
};

tests/rustdoc-js/search-short-types.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const EXPECTED = {
44
'others': [
55
{ 'path': 'search_short_types', 'name': 'P' },
66
{ 'path': 'search_short_types::VeryLongTypeName', 'name': 'p' },
7-
{ 'path': 'search_short_types', 'name': 'Ap' },
8-
{ 'path': 'search_short_types::VeryLongTypeName', 'name': 'ap' },
7+
{ 'path': 'search_short_types', 'name': 'Pa' },
98
],
109
};

0 commit comments

Comments
 (0)