diff --git a/blockchain/blockchain_test.go b/blockchain/blockchain_test.go index e4d6894..2359193 100644 --- a/blockchain/blockchain_test.go +++ b/blockchain/blockchain_test.go @@ -6,6 +6,7 @@ import ( "testing" log "github.com/Sirupsen/logrus" + "github.com/stretchr/testify/assert" ) func TestMain(t *testing.T) { @@ -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) +}