|
|
@ -779,7 +779,7 @@ func TestFindAllSubmatch(t *testing.T) {
|
|
|
|
matchIndices := regComp.FindAllSubmatch(test.str)
|
|
|
|
matchIndices := regComp.FindAllSubmatch(test.str)
|
|
|
|
for i := range matchIndices {
|
|
|
|
for i := range matchIndices {
|
|
|
|
for j := range matchIndices[i] {
|
|
|
|
for j := range matchIndices[i] {
|
|
|
|
if matchIndices[i][j].isValid() {
|
|
|
|
if matchIndices[i][j].IsValid() {
|
|
|
|
if test.result[i][j] != matchIndices[i][j] {
|
|
|
|
if test.result[i][j] != matchIndices[i][j] {
|
|
|
|
t.Errorf("Wanted %v Got %v\n", test.result, matchIndices)
|
|
|
|
t.Errorf("Wanted %v Got %v\n", test.result, matchIndices)
|
|
|
|
}
|
|
|
|
}
|
|
|
|