hedgehogqa / hedgehogqa/fsharp-hedgehog

Generalized formatting of generated values

Open
#326 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
F#
Stars
284
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Following a quick discussion from #324, this issue is being created to provide generalized formatting for values from a `Gen<'a>`.

Ideally, we'd change the `Gen<'a>` type to be a record, and add a `formatter` field that looks like `'a -> string`. To maintain compatibility, this field should have a default value of `sprintf "%A"`. Another function should be exposed to override this default, `withFormatter : ('a -> string) -> Gen<'a> -> Gen<'a>`.

Any values from a generator that are formatted should use the provided formatter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.