141
141
// we cannot simply check that the res and exp lists are equal
143
143
// check that each result is in fact a correct match and there are no duplicates
146
146
if r < 0 || len(tc.source) <= r {
147
147
t.Errorf("test %q, lookup %q, result %d (n = %d): index %d out of range [0, %d[", tc.name, s, i, n, r, len(tc.source))