This commit is contained in:
parent
cfbddb3f39
commit
3b4c206003
@ -44,7 +44,7 @@ func TestListRest(t *testing.T) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
func intListGen() *rapid.Generator[IList] {
|
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()
|
myList := Empty()
|
||||||
t.Repeat(map[string]func(*rapid.T){
|
t.Repeat(map[string]func(*rapid.T){
|
||||||
"conj": func(t *rapid.T) {
|
"conj": func(t *rapid.T) {
|
||||||
@ -52,7 +52,7 @@ func intListGen() *rapid.Generator[IList] {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
return myList
|
return myList
|
||||||
})
|
}), rapid.Just(Empty()))
|
||||||
}
|
}
|
||||||
|
|
||||||
// generative tests
|
// generative tests
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user