From 8af121a840023a89a87d9e9da55261db32fa13ea Mon Sep 17 00:00:00 2001 From: mossid Date: Sat, 31 Mar 2018 20:20:44 +0200 Subject: [PATCH] remove account_test --- examples/basecoin/types/account_test.go | 36 ------------------------- 1 file changed, 36 deletions(-) delete mode 100644 examples/basecoin/types/account_test.go diff --git a/examples/basecoin/types/account_test.go b/examples/basecoin/types/account_test.go deleted file mode 100644 index 2d03999c2..000000000 --- a/examples/basecoin/types/account_test.go +++ /dev/null @@ -1,36 +0,0 @@ -package types - -import ( - "testing" - - "github.com/stretchr/testify/assert" - - sdk "github.com/cosmos/cosmos-sdk/types" - wire "github.com/cosmos/cosmos-sdk/wire" - "github.com/cosmos/cosmos-sdk/x/auth" -) - -func TestAppAccount(t *testing.T) { - cdc := wire.NewCodec() - addr := sdk.Address([]byte("address")) - acc := &AppAccount{ - BaseAccount: auth.BaseAccount{ - Address: addr, - Coins: sdk.Coins{}, - }, - Name: "", - } - - bz, err := cdc.MarshalBinary(acc) - assert.Nil(t, err) - - decode := GetAccountDecoder(cdc) - res, err := decode(bz) - assert.Nil(t, err) - assert.Equal(t, acc, res) - - name := t.Name() - acc.SetName(name) - accname := acc.GetName() - assert.Equal(t, name, accname) -}