Commits

Jason R. Coombs  committed 3f8714a

Added a test that captures the mutation of the underlying buffer

  • Participants
  • Parent commits 5f6a5eb

Comments (0)

Files changed (1)

File test/test_fuzzy.py

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