Skip to content

Commit 56ced5d

Browse files
committed
fixup! Exported Unescape for users who want to unescape their search keys
1 parent 6cf33ba commit 56ced5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

escape_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ func TestUnescape(t *testing.T) {
173173
isAlloc := !isSameMemory(out, in) && !isSameMemory(out, buf)
174174

175175
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)
177177
break
178178
} else if isErr {
179179
continue
180180
} 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))
182182
break
183183
} 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)
185185
break
186186
}
187187
}

0 commit comments

Comments
 (0)