1
0
mirror of https://github.com/json-iterator/go.git synced 2025-01-05 12:50:34 +02:00

fix build

This commit is contained in:
Tao Wen 2017-07-09 16:28:35 +08:00
parent 3606750b83
commit d336ee6da6
3 changed files with 0 additions and 3 deletions

View File

@ -37,7 +37,6 @@ func Test_read_two_element_array_as_any(t *testing.T) {
should.Equal(2, any.Size())
should.True(any.ToBool())
should.Equal(1, any.ToInt())
should.Equal(1, any.GetArray()[0].ToInt())
should.Equal([]interface{}{float64(1), float64(2)}, any.GetInterface())
stream := NewStream(ConfigDefault, nil, 32)
any.WriteTo(stream)

View File

@ -22,7 +22,6 @@ func Test_read_object_as_any(t *testing.T) {
should.Equal(0, any.ToInt())
should.Equal(Object, any.ValueType())
should.Nil(any.LastError())
should.Equal("stream", any.GetObject()["a"].ToString())
obj := struct {
A string
}{}

View File

@ -32,7 +32,6 @@ func Test_map_wrapper_any_get_all(t *testing.T) {
any := Wrap(map[string][]int{"Field1": {1, 2}})
should.Equal(`{"Field1":1}`, any.Get('*', 0).ToString())
should.Contains(any.Keys(), "Field1")
should.Equal(any.GetObject()["Field1"].ToInt(), 1)
// map write to
stream := NewStream(ConfigDefault, nil, 0)