(t *testing.T)
| 54 | assert.False(t, i.Equal(i2)) |
| 55 | } |
| 56 | func TestIntEndianBytes(t *testing.T) { |
| 57 | modulo, err := hex.DecodeString("1000") |
| 58 | moduloI := new(big.Int).SetBytes(modulo) |
| 59 | assert.Nil(t, err) |
| 60 | v, err := hex.DecodeString("10") |
| 61 | assert.Nil(t, err) |
| 62 | |
| 63 | i := new(Int).InitBytes(v, moduloI, BigEndian) |
| 64 | |
| 65 | assert.Equal(t, 2, i.MarshalSize()) |
| 66 | assert.NotPanics(t, func() { i.LittleEndian(2, 2) }) |
| 67 | } |
| 68 | |
| 69 | func TestInits(t *testing.T) { |
| 70 | i1 := NewInt64(int64(65500), big.NewInt(65535)) |
nothing calls this directly
no test coverage detected