1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-27 08:30:57 +02:00
json-iterator/jsoniter_any_map_test.go

15 lines
326 B
Go
Raw Normal View History

2017-06-17 15:32:48 +02:00
package jsoniter
import (
"github.com/json-iterator/go/require"
2017-06-19 17:43:53 +02:00
"testing"
2017-06-17 15:32:48 +02:00
)
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())
}