230819.1.11 · 34b954da7f5f915beea36c99adf480868cb762be
Merge branch 'master' into coverage
reading declarations
Changes to word_test.go. All files
@@ -146,10 +146,10 @@ func TestWordCasesString(t *testing.T) { // Benchmark the use of the word break function for byte slices. func BenchmarkWordFunctionBytes(b *testing.B) {- str := []byte(benchmarkStr) for i := 0; i < b.N; i++ { var c []byte state := -1+ str := benchmarkBytes for len(str) > 0 { c, str, state = FirstWord(str, state) resultRunes = []rune(string(c))@@ -159,10 +159,10 @@ func BenchmarkWordFunctionBytes(b *testing.B) { // Benchmark the use of the word break function for strings. func BenchmarkWordFunctionString(b *testing.B) {- str := benchmarkStr for i := 0; i < b.N; i++ { var c string state := -1+ str := benchmarkStr for len(str) > 0 { c, str, state = FirstWordInString(str, state) resultRunes = []rune(c)