Skip to content

Commit

Permalink
adding 0 value coin test case
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Aug 3, 2021
1 parent 40d22c7 commit 2468b64
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions x/bank/types/balance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ func TestBalanceValidate(t *testing.T) {
},
true,
},
{
"0 value coin",
bank.Balance{
Address: "cosmos1yq8lgssgxlx9smjhes6ryjasmqmd3ts2559g0t",
Coins: sdk.Coins{
sdk.NewInt64Coin("atom", 0),
sdk.NewInt64Coin("zatom", 2),
},
},
true,
},
{
"unsorted coins",
bank.Balance{
Expand Down

0 comments on commit 2468b64

Please sign in to comment.