|
|
@ -701,7 +701,7 @@ func TestFind(t *testing.T) {
|
|
|
|
if len(test.result) == 0 {
|
|
|
|
if len(test.result) == 0 {
|
|
|
|
return // Manually pass the test, because this is the expected behavior
|
|
|
|
return // Manually pass the test, because this is the expected behavior
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
t.Errorf("Wanted no match Got %v\n", groupIndex)
|
|
|
|
t.Errorf("Wanted %v Got no matches\n", test.result)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if groupIndex != test.result[0] {
|
|
|
|
if groupIndex != test.result[0] {
|
|
|
|