about summary refs log tree commit diff
path: root/tests/rustdoc-js/literal-path.js
blob: ea999ea1a6f0ad9478dd997f40114bf240323b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// exact-check

// This test ensures that literal search is always applied on elements of the path.

const EXPECTED = [
    {
        'query': '"some::path"',
        'others': [
            { 'path': 'literal_path::some', 'name': 'Path' },
        ],
    },
    {
        'query': '"somea::path"',
        'others': [
            { 'path': 'literal_path::somea', 'name': 'Path' },
        ],
    },
    {
        'query': '"soma::path"',
        'others': [
        ],
    },
];