gpu-compute-chain/x/colinearcore/keeper/params_test.go

20 lines
349 B
Go
Raw Normal View History

2022-08-25 16:51:14 -07:00
package keeper_test
import (
"testing"
testkeeper "colinear/testutil/keeper"
2022-09-06 15:18:09 -07:00
"colinear/x/colinearcore/types"
2022-08-25 16:51:14 -07:00
"github.com/stretchr/testify/require"
)
func TestGetParams(t *testing.T) {
k, ctx := testkeeper.ColinearcoreKeeper(t)
2022-08-25 16:51:14 -07:00
params := types.DefaultParams()
k.SetParams(ctx, params)
require.EqualValues(t, params, k.GetParams(ctx))
}