Skip to content

Commit

Permalink
[tests-] add missing argument to test_fuzzymatch
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Nov 5, 2023
1 parent c8633c2 commit 6b7c446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visidata/fuzzymatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ def fuzzymatch(vd, haystack:"list[dict[str, str]]", needles:"list[str]) -> list[
return sorted(matches, key=lambda m: -m.score)


def test_fuzzymatch():
@VisiData.api
def test_fuzzymatch(vd):
assert asciiFuzzyIndex('helo', 'h') == 0
assert asciiFuzzyIndex('helo', 'hlo') == 0
assert asciiFuzzyIndex('helo', 'e') == 0
Expand Down

0 comments on commit 6b7c446

Please sign in to comment.