Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The implementation is essentially a copy of Arb.Default.Option(), which now calls into Gen.optionOf. While there's a single test of Arb.Default.Option(), that test doesn't really verify anything. I could replace the Generator implementation with ` Gen.constant None` without breaking any tests. This I describe only to defend that this commit, which adds a new feature, adds no new tests. I can't, however, think of an appropriate way to test Gen.optionOf in any meaningful way. Apparently, the author of Arb.Default.Option() couldn't, as well. The name is chosen to mirror Gen.listOf, Gen.arrayOf, and so on.
- Loading branch information