You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: int_test.go
    path of file: ./repos/cosmos-sdk/collections/codec
    
    the code of the file until where you have to start completion: package codec

import (
	"bytes"
	"sort"
	"testing"

	"github.com/stretchr/testify/require"
	"pgregory.net/rapid"
)

// TestInt64Keys creates a random slice of int64. They're sorted, and then
// they're encoded to bytes. It ensures proper ordering of 
    
func TestInt32Keys(t *testing.T) {
	kc := NewInt32Key[int32]()
	rapid.Check(t, func(t *rapid.T) {
		slice := rapid.SliceOfN(rapid.Int32(), 50_000, 100_000).Draw(t, "random ints")
		sort.Slice(slice, func(i, j int) bool {
			return slice[i] < slice[j]
		})

		var current []byte
		for _, i := range slice {
			next := make([]byte, kc.Size(i))
			_, err := kc.Encode(next, i)
			require.NoError(t, err)
			cmp := bytes.Compare(current, next)
			require.True(t, cmp == 0 || cmp == -1)
			current = next
		}
	})
}