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

19 lines
350 B
Go
Raw Normal View History

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