diff --git a/src/string_match_test.go b/src/string_match_test.go index 296ab11..38cd69f 100644 --- a/src/string_match_test.go +++ b/src/string_match_test.go @@ -7,21 +7,21 @@ import ( func TestBf(t *testing.T) { s := "bacbababaabcbab" - p := "ababa" + p := "abababca" fmt.Printf("bf %s match %s index is: %+v\n", p, s, bf(s, p)) // t.Logf("%s match %s index is: %+v\n", p, s, bf(s, p)) } func TestGetNext(t *testing.T) { - p := "ababa" + p := "abababca" fmt.Printf("getNext %s next is: %+v\n", p, getNext(p)) // t.Logf("%s next is: %+v\n", p, next) } func TestKmp(t *testing.T) { s := "bacbababaabcbab" - p := "ababa" + p := "abababca" fmt.Printf("kmp %s match %s index is: %+v\n", p, s, kmp(s, p)) // t.Logf("%s match %s index is: %+v\n", p, s, kmp(s, p))