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-19 23:43:53 +08:00
parent c3f5a2c536
commit f5edf564c8
25 changed files with 44 additions and 48 deletions

View File

@ -1,9 +1,9 @@
package jsoniter
import (
"testing"
"encoding/json"
"github.com/json-iterator/go/require"
"testing"
)
func Test_json_RawMessage(t *testing.T) {
@ -38,7 +38,6 @@ func Test_json_RawMessage_in_struct(t *testing.T) {
should.Equal(`hello`, data.Field1)
}
func Test_decode_map_of_raw_message(t *testing.T) {
should := require.New(t)
type RawMap map[string]*json.RawMessage
@ -72,4 +71,4 @@ func Test_encode_map_of_jsoniter_raw_message(t *testing.T) {
output, err := MarshalToString(rawMap)
should.Nil(err)
should.Equal(`{"hello":[]}`, output)
}
}