From fd598dfecb5b74ba19aaf59a1137716ad5202e8a Mon Sep 17 00:00:00 2001 From: liuqiang Date: Thu, 9 Jun 2022 20:50:34 +0800 Subject: [PATCH] test: fix old test for escape b --- encode_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/encode_test.go b/encode_test.go index ef88bd431..a0efc56c7 100644 --- a/encode_test.go +++ b/encode_test.go @@ -153,7 +153,7 @@ func TestRoundtripStringTag(t *testing.T) { "BoolStr": "false", "IntStr": "0", "UintptrStr": "0", - "StrStr": "\"\\b\\f\\n\\r\\t\\\"\\\\\"", + "StrStr": "\"\\u0008\\u000c\\n\\r\\t\\\"\\\\\"", "NumberStr": "0" }`, }, @@ -779,11 +779,11 @@ var encodeStringTests = []struct { {"\x05", `"\u0005"`}, {"\x06", `"\u0006"`}, {"\x07", `"\u0007"`}, - {"\x08", `"\b"`}, + {"\x08", `"\u0008"`}, {"\x09", `"\t"`}, {"\x0a", `"\n"`}, {"\x0b", `"\u000b"`}, - {"\x0c", `"\f"`}, + {"\x0c", `"\u000c"`}, {"\x0d", `"\r"`}, {"\x0e", `"\u000e"`}, {"\x0f", `"\u000f"`},