Simple test case:
fn main() {
let mut m = nucleo_matcher::Matcher::new(nucleo_matcher::Config::DEFAULT);
m.fuzzy_match(
nucleo::Utf32Str::Ascii(b"Aaaaa"),
nucleo::Utf32Str::Ascii(b"Aaaa"),
);
}
Results in:
.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nucleo-matcher-0.3.1/src/fuzzy_optimal.rs:37:13:
should have been caught by prefilter
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I expected this to produce a match.
Using:
[dependencies]
nucleo = "0.5.0"
nucleo-matcher = "0.3.1"