diff --git a/list/list_test.go b/list/list_test.go index 8905233..9386cb0 100644 --- a/list/list_test.go +++ b/list/list_test.go @@ -44,7 +44,7 @@ func TestListRest(t *testing.T) { */ func intListGen() *rapid.Generator[IList] { - return rapid.Custom(func(t *rapid.T) IList { + return rapid.OneOf(rapid.Custom(func(t *rapid.T) IList { myList := Empty() t.Repeat(map[string]func(*rapid.T){ "conj": func(t *rapid.T) { @@ -52,7 +52,7 @@ func intListGen() *rapid.Generator[IList] { }, }) return myList - }) + }), rapid.Just(Empty())) } // generative tests