Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve function name takeSmallest to shrinkInput in Property #347

Merged
1 commit merged into from
Sep 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Hedgehog/Property.fs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module Property =
// Runner
//

let private takeSmallest
let private shrinkInput
(args : PropertyArgs)
(shrinkLimit : int<shrinks> Option) =
let rec loop
Expand Down Expand Up @@ -167,7 +167,7 @@ module Property =
| Failure ->
{ Tests = tests + 1<tests>
Discards = discards
Status = takeSmallest args config.ShrinkLimit result }
Status = shrinkInput args config.ShrinkLimit result }
| Success () ->
loop nextArgs (tests + 1<tests>) discards
| Discard ->
Expand Down