Skip to content

Commit

Permalink
tests: Add GetBalance case with only fractional balance
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed May 21, 2024
1 parent 3a8b66d commit 58f6625
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/precisebank/keeper/view_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ func TestKeeper_GetBalance(t *testing.T) {
// integer + fractional
sdk.NewCoin(types.ExtendedCoinDenom, sdk.NewInt(1000_000_000_000_100)),
},
{
"extended denom - only fractional balance",
types.ExtendedCoinDenom,
// no coins in bank, only fractional balance
sdk.NewCoins(),
sdkmath.NewInt(100),
sdk.NewCoin(types.ExtendedCoinDenom, sdk.NewInt(100)),
},
{
"extended denom - max fractional balance",
types.ExtendedCoinDenom,
Expand Down

0 comments on commit 58f6625

Please sign in to comment.