Skip to content

Commit

Permalink
Add test capturing expectation as found in version 1.1. Ref #14.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason R. Coombs committed Nov 14, 2017
1 parent 18e2bf1 commit fa184ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_fuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

import fuzzy


def test_soundex_does_not_mutate_strings():
phrase = 'FancyFree'
fuzzy.Soundex(4)(phrase)
buffer = ctypes.c_char_p(phrase)
assert str(buffer) == "c_char_p('FancyFree')"


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

0 comments on commit fa184ba

Please sign in to comment.