Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond committed Feb 3, 2024
1 parent d566c5a commit 270db44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/amm/types/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import (

func TestErrors(t *testing.T) {
require.Equal(t, types.ErrLimitMaxAmount.Error(), "calculated amount is larger than max amount")
require.Equal(t, types.ErrLimitMinAmount.Error(), "calculated amount is lesser than min amount")
require.Equal(t, types.ErrLimitMinAmount.Error(), "calculated amount is less than min amount")
require.Equal(t, types.ErrInvalidMathApprox.Error(), "invalid calculated result")
require.Equal(t, types.ErrInvalidPool.Error(), "attempting to create an invalid pool")
require.Equal(t, types.ErrDenomNotFoundInPool.Error(), "denom does not exist in pool")
require.Equal(t, types.ErrEmptyRoutes.Error(), "routes not defined")
require.Equal(t, types.ErrNegativeSwapFee.Error(), "swap fee is negative")
require.Equal(t, types.ErrNegativeExitFee.Error(), "exit fee is negative")
require.Equal(t, types.ErrTooMuchSwapFee.Error(), "swap fee should be lesser than 1 (100%)")
require.Equal(t, types.ErrTooMuchExitFee.Error(), "exit fee should be lesser than 1 (100%)")
require.Equal(t, types.ErrTooMuchSwapFee.Error(), "swap fee should be less than 1 (100%)")
require.Equal(t, types.ErrTooMuchExitFee.Error(), "exit fee should be less than 1 (100%)")
require.Equal(t, types.ErrTooManyTokensOut.Error(), "tx is trying to get more tokens out of the pool than exist")
require.Equal(t, types.ErrInvalidPoolId.Error(), "invalid pool id")
}
Expand Down

0 comments on commit 270db44

Please sign in to comment.