diff --git a/read/read_test.go b/read/read_test.go index c448a45..9105dae 100644 --- a/read/read_test.go +++ b/read/read_test.go @@ -56,11 +56,11 @@ func TestReadList(t *testing.T) { func StringifiedFormGen() *rapid.Generator[string] { return rapid.OneOf(rapid.Custom(func(t *rapid.T) string { myList := list.Empty() - i := 200 + i := 0 t.Repeat(map[string]func(*rapid.T){ "conj": func(t *rapid.T) { - if i < 50 { - myList = myList.Conj(StringifiedFormGen().Draw(t, "el")) + if i < 100 { + myList = myList.Conj(rapid.Int().Draw(t, "el")) } }, }) @@ -78,7 +78,7 @@ func StringifiedFormGen() *rapid.Generator[string] { func TestRead(t *testing.T) { rapid.Check(t, func(t *rapid.T) { input := StringifiedFormGen().Draw(t, "input") - _, err, _ := readForm(input, 0, "user") + _, err := ReadString(input) assert.Nil(t, err, err) }) }