jobjo / popper

Property-based testing at ease
ISC License
43 stars 1 forks source link

Provide array_sample #54

Closed copy closed 3 years ago

copy commented 3 years ago

The following fails with Unbound value array_sample:

  type foo = {
    bar: int array;
  }
  [@@deriving popper]

As a temporary work-around, I've used Sample.list to define array_sample:

  let array_sample t = Popper.Sample.map Array.of_list (Popper.Sample.list t)
jobjo commented 3 years ago

Thanks for reporting. Addressing in https://github.com/jobjo/popper/pull/55

jobjo commented 3 years ago

Landed fix. Will be part of next release.