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

Function impl

scripts/test_stringzilla.py:805–810  ·  view source on GitHub ↗
(native_str: str)

Source from the content-addressed store, hash-verified

803
804def test_slice_of_split():
805 def impl(native_str: str):
806 native_split = native_str.split()
807 text = sz.Str(native_str)
808 sz_split = text.split()
809 for slice_idx in range(len(native_split)):
810 assert str(sz_split[slice_idx]) == native_split[slice_idx]
811
812 native_str = "Weebles wobble before they fall down, don't they?"
813 impl(native_str)

Callers 1

test_slice_of_splitFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…