diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dd65afd..dad3368e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]) @@ -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]: diff --git a/src/Hedgehog/Property.fs b/src/Hedgehog/Property.fs index 5d49c8bb..2c6241fb 100644 --- a/src/Hedgehog/Property.fs +++ b/src/Hedgehog/Property.fs @@ -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) so we prepare the value instead let prepareForPrinting (value: obj) : obj =