From fa184ba40b7fe2767985a4ec9c90af5e52cbc461 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 14 Nov 2017 15:47:28 -0500 Subject: [PATCH] Add test capturing expectation as found in version 1.1. Ref #14. --- test/test_fuzzy.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_fuzzy.py b/test/test_fuzzy.py index 2065f93..6865eb5 100644 --- a/test/test_fuzzy.py +++ b/test/test_fuzzy.py @@ -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'