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

extract out any tests

This commit is contained in:
Tao Wen
2017-06-17 21:32:48 +08:00
parent 2503ef17eb
commit 8ab46965bd
20 changed files with 641 additions and 728 deletions

View File

@ -13,13 +13,6 @@ func Test_read_null(t *testing.T) {
should.True(iter.ReadNil())
iter = ParseString(ConfigDefault, `null`)
should.Nil(iter.Read())
iter = ParseString(ConfigDefault, `null`)
any, err := UnmarshalAnyFromString(`null`)
should.Nil(err)
should.Equal(0, any.ToInt())
should.Equal(float64(0), any.ToFloat64())
should.Equal("", any.ToString())
should.False(any.ToBool())
}
func Test_write_null(t *testing.T) {