generate empty lists
All checks were successful
Go / test (push) Successful in 3s

This commit is contained in:
Adam Jeniski 2025-11-04 17:21:52 -10:00
parent cfbddb3f39
commit 3b4c206003

View File

@ -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