50
52
for j := 0; !scan.done; j++ {
52
54
t.Errorf("%d: extra token %q", i, scan.token)
54
56
t.Errorf("%d: token %d: found %q; want %q", i, j, scan.token, tt.tok[j])
59
if s := strings.Join(tt.tok, "-"); cmp(s, bytes.Replace(scan.b, b("_"), b("-"), -1)) != 0 {
61
if s := strings.Join(tt.tok, "-"); tag.Compare(s, bytes.Replace(scan.b, b("_"), b("-"), -1)) != 0 {
60
62
t.Errorf("%d: input: found %q; want %q", i, scan.b, s)
62
64
if (scan.err == nil) != tt.ok {