1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00
This commit is contained in:
Tao Wen
2017-06-17 21:11:23 +08:00
parent 55fc498d27
commit 0195110b5b
10 changed files with 14 additions and 16 deletions

View File

@ -147,7 +147,7 @@ func Test_string_encode_with_std_without_html_escape(t *testing.T) {
err := encoder.Encode(input)
should.Nil(err)
stdOutput := buf.String()
stdOutput = stdOutput[:len(stdOutput) - 1]
stdOutput = stdOutput[:len(stdOutput)-1]
jsoniterOutputBytes, err := Marshal(input)
should.Nil(err)
jsoniterOutput := string(jsoniterOutputBytes)