From 46a301a52849343bf6a7f4256fbd23019aa28289 Mon Sep 17 00:00:00 2001 From: Tarun Sharma Date: Fri, 16 May 2025 10:36:36 +0400 Subject: [PATCH] test: added more table test data for TestBlockNumberJSONUnmarshal --- rpc/types_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpc/types_test.go b/rpc/types_test.go index 8ff021578f..deb761fe2c 100644 --- a/rpc/types_test.go +++ b/rpc/types_test.go @@ -53,6 +53,10 @@ func TestBlockNumberJSONUnmarshal(t *testing.T) { 17: {`""`, true, BlockNumber(0)}, 18: {``, true, BlockNumber(0)}, 19: {`88439993`, false, BlockNumber(88439993)}, + 20: {`-1`, true, BlockNumber(0)}, + 21: {`MaxInt64`, true, BlockNumber(0)}, + 22: {`MinInt64`, true, BlockNumber(0)}, + 23: {`MaxUint64`, true, BlockNumber(0)}, } for i, test := range tests {