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

Function TestListifyString

texteditor/difflib/bytes/bytes_test.go:53–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func TestListifyString(t *testing.T) {
54 lst := listifyString([]byte("qwerty"))
55 if reflect.DeepEqual(lst, splitChars("qwerty")) != true {
56 t.Fatal("listifyString failure:", lst)
57 }
58}
59
60func TestSequenceMatcherRatio(t *testing.T) {
61 s := NewMatcher(splitChars("abcd"), splitChars("bcde"))

Callers

nothing calls this directly

Calls 2

listifyStringFunction · 0.70
splitCharsFunction · 0.70

Tested by

no test coverage detected