Skip to content

Commit 66b91ee

Browse files
committed
added valid sorted coin testcase
1 parent 2468b64 commit 66b91ee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

x/bank/types/balance_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ func TestBalanceValidate(t *testing.T) {
8787
},
8888
true,
8989
},
90+
{
91+
"valid sorted coins",
92+
bank.Balance{
93+
Address: "cosmos1yq8lgssgxlx9smjhes6ryjasmqmd3ts2559g0t",
94+
Coins: sdk.Coins{
95+
sdk.NewInt64Coin("atom", 2),
96+
sdk.NewInt64Coin("batom", 12),
97+
sdk.NewInt64Coin("zatom", 2),
98+
},
99+
},
100+
false,
101+
},
90102
}
91103

92104
for _, tc := range testCases {

0 commit comments

Comments
 (0)