(s string)
| 22 | } |
| 23 | |
| 24 | func splitChars(s string) []string { |
| 25 | chars := make([]string, 0, len(s)) |
| 26 | // Assume ASCII inputs |
| 27 | for i := 0; i != len(s); i++ { |
| 28 | chars = append(chars, string(s[i])) |
| 29 | } |
| 30 | return chars |
| 31 | } |
| 32 | |
| 33 | func TestSequenceMatcherRatio(t *testing.T) { |
| 34 | s := NewMatcher(splitChars("abcd"), splitChars("bcde")) |
no outgoing calls
no test coverage detected
searching dependent graphs…