We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43536c7 commit 0c7ae46Copy full SHA for 0c7ae46
utils_test.go
@@ -262,6 +262,14 @@ func TestEscapeBackslash(t *testing.T) {
262
expected, actual,
263
)
264
}
265
+
266
+ actual = string(escapeStringBackslash([]byte{}, value))
267
+ if actual != expected {
268
+ t.Errorf(
269
+ "expected %s, got %s",
270
+ expected, actual,
271
+ )
272
+ }
273
274
275
expect("foo\\0bar", "foo\x00bar")
@@ -282,6 +290,14 @@ func TestEscapeQuotes(t *testing.T) {
282
290
283
291
284
292
293
294
+ actual = string(escapeStringQuotes([]byte{}, value))
295
296
297
298
299
300
285
301
286
302
287
303
expect("foo\x00bar", "foo\x00bar") // not affected
0 commit comments