Skip to content

Commit

Permalink
Test \b and \f JSON encoding explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
V02460 committed Feb 14, 2024
1 parent b622071 commit 0f87896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gjson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2578,6 +2578,7 @@ func TestJSONString(t *testing.T) {
testJSONString(t, s)
testJSONString(t, "R\xfd\xfc\a!\x82eO\x16?_\x0f\x9ab\x1dr")
testJSONString(t, "_\xb9\v\xad\xb3|X!\xb6\xd9U&\xa4\x1a\x95\x04")
testJSONString(t, "\b\f")
rng := rand.New(rand.NewSource(time.Now().UnixNano()))
start := time.Now()
var buf [16]byte
Expand Down

0 comments on commit 0f87896

Please sign in to comment.