public static var arbitrary: Gen<FooWrapperStruct> {
return Gen<FooWrapperStruct>(unGen: { r, n in
let f = Foo()
f.bar = Bool.arbitrary.unGen(r,n)
f.baz = Bool.arbitrary.unGen(r,n)
f.buz = Bool.arbitrary.unGen(r,n)
...
f.foobar = Bool.arbitrary.unGen(r,n)
return FooWrapperStruct(foo: f)
})
cover
was what i wanted, unclear how to use it though
split
hint (also explains why my hash
test failed)