(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestClaimAddShare(t *testing.T) { |
| 43 | s := NewClaim() |
| 44 | s.AddShare(&testShare{big.NewInt(10), big.NewInt(10), 0}) |
| 45 | if s.NumShares().Int64() != 1 { |
| 46 | t.Fail() |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func TestClaimDifficultyReturnMinDifficultyOfItsShares(t *testing.T) { |
| 51 | s := &Claim{newTestShares(), nil, nil, nil} |