Skip to content

Commit

Permalink
Merge test with master, demonstrating that basic usage works ask expe…
Browse files Browse the repository at this point in the history
…cted. Ref #14.
  • Loading branch information
Jason R. Coombs committed Nov 14, 2017
2 parents 9dca8b1 + fa184ba commit 4565ea5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_fuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ def test_soundex_does_not_mutate_strings():
assert buffer.value.decode() == "FancyFree"


def test_soundex_result():
phrase = 'FancyFree'
res = fuzzy.Soundex(4)(phrase)
assert res == 'F521'


def test_DMetaphone():
m = fuzzy.DMetaphone()
assert m("mayer") == [b'MR', None]

0 comments on commit 4565ea5

Please sign in to comment.