1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-24 23:16:47 +02:00

#61 remove internal buffer from objectAny

This commit is contained in:
Tao Wen
2017-06-18 23:09:30 +08:00
parent 15c92d48df
commit 02cf6a73cc
3 changed files with 85 additions and 90 deletions

View File

@ -53,6 +53,7 @@ func Test_wrap_object(t *testing.T) {
should.Equal("hello", any.Get("Field1").ToString())
any = Wrap(TestObject{"hello", "world"})
should.Equal(2, any.Size())
should.Equal(`{"Field1":"hello"}`, any.Get('*').ToString())
}
func Test_any_within_struct(t *testing.T) {