MCPcopy Create free account
hub / github.com/cogentcore/core / splitChars

Function splitChars

texteditor/difflib/difflib_test.go:27–34  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

25}
26
27func splitChars(s string) []string {
28 chars := make([]string, 0, len(s))
29 // Assume ASCII inputs
30 for i := 0; i != len(s); i++ {
31 chars = append(chars, string(s[i]))
32 }
33 return chars
34}
35
36func TestListifyString(t *testing.T) {
37 lst := listifyString("qwerty")

Callers 7

TestSequenceMatcherRatioFunction · 0.70
TestGetOptCodesFunction · 0.70
TestWithAsciiOneInsertFunction · 0.70
TestWithAsciiOnDeleteFunction · 0.70
TestWithAsciiBJunkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected