MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / test_utf8_split_iter_matches_python

Function test_utf8_split_iter_matches_python

scripts/test_stringzilla.py:2170–2174  ·  view source on GitHub ↗

Verify skip_empty=True matches Python's split() behavior.

(text)

Source from the content-addressed store, hash-verified

2168 ["hello world", " spaced ", "a\tb\nc", "no-spaces", " ", ""],
2169)
2170def test_utf8_split_iter_matches_python(text):
2171 """Verify skip_empty=True matches Python's split() behavior."""
2172 py_result = text.split()
2173 sz_result = [str(s) for s in sz.utf8_split_iter(text, skip_empty=True)]
2174 assert sz_result == py_result
2175
2176
2177

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…