(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestClaimNumSharesReturnsNumberOfShare(t *testing.T) { |
| 31 | s := &Claim{Shares{ |
| 32 | &testShare{big.NewInt(10), big.NewInt(10), 0}}, |
| 33 | nil, |
| 34 | nil, |
| 35 | nil, |
| 36 | } |
| 37 | if s.NumShares().Int64() != 1 { |
| 38 | t.Fail() |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func TestClaimAddShare(t *testing.T) { |
| 43 | s := NewClaim() |