@@ -173,15 +173,15 @@ func TestUnescape(t *testing.T) {
173
173
isAlloc := ! isSameMemory (out , in ) && ! isSameMemory (out , buf )
174
174
175
175
if isErr != test .isErr {
176
- t .Errorf ("unescape (`%s`, bufsize=%d) returned isErr mismatch: expected %t, obtained %t" , test .in , cap (buf ), test .isErr , isErr )
176
+ t .Errorf ("Unescape (`%s`, bufsize=%d) returned isErr mismatch: expected %t, obtained %t" , test .in , cap (buf ), test .isErr , isErr )
177
177
break
178
178
} else if isErr {
179
179
continue
180
180
} else if ! bytes .Equal (out , []byte (test .out )) {
181
- t .Errorf ("unescape (`%s`, bufsize=%d) returned unescaped mismatch: expected `%s` (%v, len %d), obtained `%s` (%v, len %d)" , test .in , cap (buf ), test .out , []byte (test .out ), len (test .out ), string (out ), out , len (out ))
181
+ t .Errorf ("Unescape (`%s`, bufsize=%d) returned unescaped mismatch: expected `%s` (%v, len %d), obtained `%s` (%v, len %d)" , test .in , cap (buf ), test .out , []byte (test .out ), len (test .out ), string (out ), out , len (out ))
182
182
break
183
183
} else if isAlloc != (test .canAlloc && buftest .isTooSmall ) {
184
- t .Errorf ("unescape (`%s`, bufsize=%d) returned isAlloc mismatch: expected %t, obtained %t" , test .in , cap (buf ), buftest .isTooSmall , isAlloc )
184
+ t .Errorf ("Unescape (`%s`, bufsize=%d) returned isAlloc mismatch: expected %t, obtained %t" , test .in , cap (buf ), buftest .isTooSmall , isAlloc )
185
185
break
186
186
}
187
187
}
0 commit comments