Skip to content

Assertion failure on simple input: should have been caught by prefilter #83

@peterwaller-arm

Description

@peterwaller-arm

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions