mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +00:00
test: added more table test data for TestBlockNumberJSONUnmarshal
This commit is contained in:
parent
cccfefa669
commit
46a301a528
1 changed files with 4 additions and 0 deletions
|
|
@ -53,6 +53,10 @@ func TestBlockNumberJSONUnmarshal(t *testing.T) {
|
||||||
17: {`""`, true, BlockNumber(0)},
|
17: {`""`, true, BlockNumber(0)},
|
||||||
18: {``, true, BlockNumber(0)},
|
18: {``, true, BlockNumber(0)},
|
||||||
19: {`88439993`, false, BlockNumber(88439993)},
|
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 {
|
for i, test := range tests {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue