rust/tests/rustdoc-js-std
Michael Howell dfd9e5e3fa rustdoc: use restricted Damerau-Levenshtein distance for search
Based on https://github.com/rust-lang/rust/pull/108200, for the same
rationale.

> This replaces the existing Levenshtein algorithm with the
> Damerau-Levenshtein algorithm. This means that "ab" to "ba" is one change
> (a transposition) instead of two (a deletion and insertion). More
> specifically, this is a restricted implementation, in that "ca" to "abc"
> cannot be performed as "ca" → "ac" → "abc", as there is an insertion in the
> middle of a transposition. I believe that errors like that are sufficiently
> rare that it's not worth taking into account.

Before this change, searching `prinltn!` listed `print!` first, followed
by `println!`. With this change, `println!` matches more closely.
2023-03-10 19:47:08 -07:00
..
alias-1.js
alias-2.js
alias-3.js
alias-4.js
alias.js
asrawfd.js
basic.js
deduplication.js
enum-option.js
filter-crate.js
fn-forget.js
from_u.js
keyword.js
macro-check.js
macro-print.js rustdoc: update search test cases 2023-01-14 12:04:12 -07:00
never.js
option-type-signatures.js rustdoc: function signature search with traits in where clause 2023-03-04 09:05:57 -07:00
parser-errors.js Add test for unclosed generic 2023-03-03 20:49:25 +01:00
parser-filter.js rustdoc: search by macro when query ends with ! 2023-02-16 18:16:09 -07:00
parser-generics.js
parser-ident.js rustdoc: search by macro when query ends with ! 2023-02-16 18:16:09 -07:00
parser-literal.js
parser-paths.js
parser-quote.js
parser-returned.js
parser-separators.js
parser-weird-queries.js
path-ordering.js
primitive.js
println-typo.js rustdoc: use restricted Damerau-Levenshtein distance for search 2023-03-10 19:47:08 -07:00
quoted.js
reference-shrink.js rustdoc: hide reference methods in search index 2023-02-16 17:21:57 -07:00
regex.js rustdoc: add test case based on #103357 2023-01-24 09:49:33 -07:00
return-specific-literal.js
return-specific.js
should-fail.js
string-from_ut.js
struct-vec.js
typed-query.js rustdoc: update test cases to match with stricter match criteria 2023-01-21 00:11:39 -07:00
vec-new.js rustdoc: update search test cases 2023-01-14 12:04:12 -07:00