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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
alias-2.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
alias-3.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
alias-4.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
alias.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
asrawfd.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
basic.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deduplication.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
enum-option.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
filter-crate.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
fn-forget.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
from_u.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
keyword.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-check.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
macro-print.js rustdoc: update search test cases 2023-01-14 12:04:12 -07:00
never.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
parser-ident.js rustdoc: search by macro when query ends with ! 2023-02-16 18:16:09 -07:00
parser-literal.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
parser-paths.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
parser-quote.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
parser-returned.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
parser-separators.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
parser-weird-queries.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
path-ordering.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
primitive.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
println-typo.js rustdoc: use restricted Damerau-Levenshtein distance for search 2023-03-10 19:47:08 -07:00
quoted.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
return-specific.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
should-fail.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
string-from_ut.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
struct-vec.js Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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