Files
rust/tests/rustdoc-js-std/search-by-number.js
2025-10-20 12:58:55 -05:00

20 lines
594 B
JavaScript

// regression test for https://github.com/rust-lang/rust/issues/147763
//
// identifiers in search queries should not be required to follow the
// same strict rules around ID_Start that identifers in rust code follow,
// as searches frequently use substrings of identifers.
//
// for example, identifiers cannot start with digits,
// but they can contain them, so we allow search idents to start with digits.
const EXPECTED = {
'query': '8',
'others': [
{
'path': 'std',
'name': 'i8',
'href': '../std/primitive.i8.html',
},
]
};