Commit 7ebd8ffe authored by zhanghuiren's avatar zhanghuiren

hex testcase for read

parent 780e16e6
......@@ -77,10 +77,11 @@ func TestInteger_FromSignAndMag(t *testing.T) {
{`1x2x3x4`, `79228162551157825753847955460`, args{1, []int{1, 2, 3, 4}}},
{`(((1<<32)-1)<<32)|(1<<10)`, `18446744069414585344`, args{1, []int{1<<32 - 1, 1 << 10}}},
{`(((1<<24)-1)<<32)|(1<<10)`, `72057589742961664`, args{1, []int{1<<24 - 1, 1 << 10}}},
{`(((1<<16)-1)<<32)|(1<<10)`, `281470681744384`, args{1, []int{1<<16 - 1, 1 << 10}}},
{`(((1<<8)-1)<<32)|(1<<10)`, `1095216661504`, args{1, []int{1<<8 - 1, 1 << 10}}},
{`maxuint64=(1<<64)-1`, `18446744073709551615`, args{1, []int{1<<32 - 1, 1<<32 - 1}}},
{`(((1<<16)-1)<<32)|(1<<10)`, `281470681744384`, args{1, []int{1<<16 - 1, 0x400}}},
{`(((1<<8)-1)<<32)|(1<<10)`, `1095216661504`, args{1, []int{0xFF, 0x400}}},
{`maxuint64=(1<<64)-1`, `18446744073709551615`, args{1, []int{1<<32 - 1, 0xFFFFFFFF}}},
{`(1<<64)`, `18446744073709551616`, args{1, []int{1, 0, 0}}},
{`0x123456781234567812345678`, `5634002657842756053938493048`, args{1, []int{0x12345678, 0x12345678, 0x12345678}}},
{`-1`, `-1`, args{-1, []int{1}}},
{`-4294967296`, `-4294967296`, args{-1, []int{1, 0}}},
{`-4294967298`, `-4294967298`, args{-1, []int{1, 2}}},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment