18 lines
282 B
Go
18 lines
282 B
Go
package schematesting
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
"pgregory.net/rapid"
|
|
|
|
"cosmossdk.io/schema"
|
|
)
|
|
|
|
func TestName(t *testing.T) {
|
|
rapid.Check(t, func(t *rapid.T) {
|
|
name := NameGen.Draw(t, "name")
|
|
require.True(t, schema.ValidateName(name))
|
|
})
|
|
}
|