Skip to content

Commit

Permalink
added test for wallet repr
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlagore committed Jul 23, 2017
1 parent 0328237 commit c9cea3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blockchain/blockchain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"

log "github.com/Sirupsen/logrus"
"github.com/stretchr/testify/assert"
)

func TestMain(t *testing.T) {
Expand Down Expand Up @@ -38,3 +39,8 @@ func TestCopyBlock(t *testing.T) {
t.FailNow()
}
}

func TestWalletRepr(t *testing.T) {
w := NewWallet()
assert.Equal(t, len(w.Public().Repr()), 40)
}

0 comments on commit c9cea3e

Please sign in to comment.