|
|
@@ -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)
|
|
|
-}
|
|
|
+}
|