diff --git a/decode_test.go b/decode_test.go index 4d93f1f..b671eb0 100644 --- a/decode_test.go +++ b/decode_test.go @@ -89,7 +89,7 @@ func TestDecoder(t *testing.T) { }, { "v: -0b1000000000000000000000000000000000000000000000000000000000000000", - map[string]interface{}{"v": -9223372036854775808}, + map[string]interface{}{"v": int64(-9223372036854775808)}, }, { "v: 0xA", @@ -109,7 +109,7 @@ func TestDecoder(t *testing.T) { }, { "v: 4294967296\n", - map[string]int{"v": 4294967296}, + map[string]int64{"v": int64(4294967296)}, }, { "v: 0.1\n", @@ -200,7 +200,7 @@ func TestDecoder(t *testing.T) { map[string]uint{"v": 42}, }, { "v: 4294967296", - map[string]uint64{"v": 4294967296}, + map[string]uint64{"v": uint64(4294967296)}, }, // int diff --git a/encode_test.go b/encode_test.go index 0a6f1fe..2edb9a2 100644 --- a/encode_test.go +++ b/encode_test.go @@ -65,7 +65,7 @@ func TestEncoder(t *testing.T) { }, { "v: 4294967296\n", - map[string]int{"v": 4294967296}, + map[string]int64{"v": int64(4294967296)}, nil, }, {