1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00
Files
json-iterator/jsoniter_any_map_test.go
Tao Wen f5edf564c8 gofmt
2017-06-19 23:43:53 +08:00

15 lines
326 B
Go

package jsoniter
import (
"github.com/json-iterator/go/require"
"testing"
)
func Test_wrap_map(t *testing.T) {
should := require.New(t)
any := Wrap(map[string]string{"Field1": "hello"})
should.Equal("hello", any.Get("Field1").ToString())
any = Wrap(map[string]string{"Field1": "hello"})
should.Equal(1, any.Size())
}