]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-js/path-ordering.js
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / rustdoc-js / path-ordering.js
1 // exact-check
2
3 const QUERY = 'b::ccccccc';
4
5 const EXPECTED = {
6     'others': [
7         // `ccccccc` is an exact match for all three of these.
8         // However `b` is a closer match for `bb` than for any
9         // of the others, so it ought to go first.
10         { 'path': 'path_ordering::bb', 'name': 'Ccccccc' },
11         { 'path': 'path_ordering::aa', 'name': 'Ccccccc' },
12         { 'path': 'path_ordering::dd', 'name': 'Ccccccc' },
13     ],
14 };