Skip to content

Commit

Permalink
added valid sorted coin testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Aug 4, 2021
1 parent 2468b64 commit 66b91ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions x/bank/types/balance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ func TestBalanceValidate(t *testing.T) {
},
true,
},
{
"valid sorted coins",
bank.Balance{
Address: "cosmos1yq8lgssgxlx9smjhes6ryjasmqmd3ts2559g0t",
Coins: sdk.Coins{
sdk.NewInt64Coin("atom", 2),
sdk.NewInt64Coin("batom", 12),
sdk.NewInt64Coin("zatom", 2),
},
},
false,
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 66b91ee

Please sign in to comment.