(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func TestInits(t *testing.T) { |
| 70 | i1 := NewInt64(int64(65500), big.NewInt(65535)) |
| 71 | i2 := NewInt(&i1.V, i1.M) |
| 72 | assert.True(t, i1.Equal(i2)) |
| 73 | b, _ := i1.MarshalBinary() |
| 74 | i3 := NewIntBytes(b, i1.M, BigEndian) |
| 75 | assert.True(t, i1.Equal(i3)) |
| 76 | i4 := NewIntString(i1.String(), "", 16, i1.M) |
| 77 | assert.True(t, i1.Equal(i4)) |
| 78 | } |
| 79 | |
| 80 | func TestIntClone(t *testing.T) { |
| 81 | moduloI := new(big.Int).SetBytes([]byte{0x10, 0}) |
nothing calls this directly
no test coverage detected