Skip to content

Commit

Permalink
apply pr comment: remove tc TrimSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
zsystm committed Sep 2, 2024
1 parent d2d9de9 commit c042fa4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions client/x/evmstaking/types/withdraw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"math"
"math/big"
"strings"
"testing"

"github.com/cosmos/cosmos-sdk/types/module/testutil"
Expand Down Expand Up @@ -85,11 +84,6 @@ func (suite *WithdrawTestSuite) TestWithdrawalsString() {
suite.delAddr, suite.valAddr, suite.evmAddr.String(),
)
require.Equal(expectedString, ws.String())

// Test with spaces, it should trim the spaces
stringWithSpaces := " " + ws.String() + " " // add leading and trailing spaces
trimmedString := strings.TrimSpace(stringWithSpaces)
require.Equal(expectedString, trimmedString, "Withdrawals.String() should trim spaces")
}

func (suite *WithdrawTestSuite) TestWithdrawalsLen() {
Expand Down

0 comments on commit c042fa4

Please sign in to comment.