diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-12 16:38:44 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-14 14:22:17 +0200 |
| commit | 7dc684f17364952214a5018bacf6b4296109e268 (patch) | |
| tree | d8fb7835aa5404e7ce4debd7e6e7683ade1c9c2a /tests/rustdoc-js-std/vec-new.js | |
| parent | b5f8258497d1a1a4b9d5a006e6880a3159ef6ddb (diff) | |
| download | rust-7dc684f17364952214a5018bacf6b4296109e268.tar.gz rust-7dc684f17364952214a5018bacf6b4296109e268.zip | |
Add "vec new" test
Diffstat (limited to 'tests/rustdoc-js-std/vec-new.js')
| -rw-r--r-- | tests/rustdoc-js-std/vec-new.js | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/tests/rustdoc-js-std/vec-new.js b/tests/rustdoc-js-std/vec-new.js index 309f3543faf..9823a417a5d 100644 --- a/tests/rustdoc-js-std/vec-new.js +++ b/tests/rustdoc-js-std/vec-new.js @@ -1,9 +1,20 @@ -const EXPECTED = { - 'query': 'Vec::new', - 'others': [ - { 'path': 'std::vec::Vec', 'name': 'new' }, - { 'path': 'alloc::vec::Vec', 'name': 'new' }, - { 'path': 'std::vec::Vec', 'name': 'new_in' }, - { 'path': 'alloc::vec::Vec', 'name': 'new_in' }, - ], -}; +const EXPECTED = [ + { + 'query': 'Vec::new', + 'others': [ + { 'path': 'std::vec::Vec', 'name': 'new' }, + { 'path': 'alloc::vec::Vec', 'name': 'new' }, + { 'path': 'std::vec::Vec', 'name': 'new_in' }, + { 'path': 'alloc::vec::Vec', 'name': 'new_in' }, + ], + }, + { + 'query': 'Vec new', + 'others': [ + { 'path': 'std::vec::Vec', 'name': 'new' }, + { 'path': 'alloc::vec::Vec', 'name': 'new' }, + { 'path': 'std::vec::Vec', 'name': 'new_in' }, + { 'path': 'alloc::vec::Vec', 'name': 'new_in' }, + ], + }, +]; |
