Skip to content

fuzz.token_set_ratio blank string does not match itself #70

Description

@LTepliakov

All below cases return 0.
fuzz.token_set_ratio("","")
fuzz.token_set_ratio(" "," ")
fuzz.token_set_ratio("%","%")
fuzz.token_set_ratio("%","%%")
As far as I understand all this characters are considered blank, but by my mind it would be natural to consider them same and return 100, as rapidfuzz does in this case.

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