Source

fuzzy / test / test_fuzzy.py

Full commit
1
2
3
4
5
6
7
8
9
import ctypes

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')"