Skip to content

Commit 8f619bc

Browse files
tests
1 parent 0849a69 commit 8f619bc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

marshal_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,20 @@ var marshalTests = []struct {
247247
nil,
248248
nil,
249249
},
250+
{
251+
NativeType{proto: 2, typ: TypeBigInt},
252+
[]byte("\xf7\x0c\x6b\x14\x84\x49\x3b\x36\x4a\x36\x1e\x03\x34\x05"),
253+
"-78635384813432117863538481343211",
254+
MarshalError("can not marshal string to bigint: strconv.ParseInt: parsing \"-78635384813432117863538481343211\": value out of range"),
255+
nil,
256+
},
257+
{
258+
NativeType{proto: 2, typ: TypeBigInt},
259+
[]byte("\x20\x45\xce\x3b\x05\xef\x2d\xde\x51\xb9\x28\x76\x6d\x6e"),
260+
"922337203685477692259749625974294",
261+
MarshalError("can not marshal string to bigint: strconv.ParseInt: parsing \"922337203685477692259749625974294\": value out of range"),
262+
nil,
263+
},
250264
{
251265
NativeType{proto: 2, typ: TypeBoolean},
252266
[]byte("\x00"),

0 commit comments

Comments
 (0)