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

increase coverage

This commit is contained in:
Xargin
2017-07-05 13:55:10 +08:00
parent 550531a046
commit 1de44419ea
7 changed files with 154 additions and 45 deletions

View File

@ -183,6 +183,9 @@ func Test_read_uint64_to_any(t *testing.T) {
stream := NewStream(ConfigDefault, nil, 32)
any.WriteTo(stream)
should.Equal("12345", string(stream.Buffer()))
stream = NewStream(ConfigDefault, nil, 32)
stream.WriteUint(uint(123))
should.Equal("123", string(stream.Buffer()))
}
func Test_int_lazy_any_get(t *testing.T) {