Skip to content

Commit

Permalink
Add Property.failOnFalse
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonMN committed Nov 16, 2021
1 parent b6dbc98 commit a23e78e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 0.12.0

- Add Property.failOnFalse ([#380][380], [@TysonMN][TysonMN])

## Version 0.11.0 (2021-09-22)

- Improved integral shrink trees to match behavior of binary search ([#239][239], [@TysonMN][TysonMN])
Expand Down Expand Up @@ -171,6 +175,8 @@
[porges]:
https://github.com/porges

[380]:
https://github.com/hedgehogqa/fsharp-hedgehog/pull/380
[363]:
https://github.com/hedgehogqa/fsharp-hedgehog/pull/363
[362]:
Expand Down
3 changes: 3 additions & 0 deletions src/Hedgehog/Property.fs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ module Property =
|> bindGen kTry
|> ofGen

let failOnFalse p =
p |> bind ofBool

let private printValue (value) : string =
// sprintf "%A" is not prepared for printing ResizeArray<_> (C# List<T>) so we prepare the value instead
let prepareForPrinting (value: obj) : obj =
Expand Down

0 comments on commit a23e78e

Please sign in to comment.