Skip to content

Commit

Permalink
Utilize Property.set internally
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonMN authored and adam-becker committed Sep 21, 2021
1 parent 1115267 commit d7886e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hedgehog/Property.fs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module Property =
let h = g |> Gen.map |> mapGen
h x

let private set (a: 'a) (property : Property<'b>) : Property<'a> =
let internal set (a: 'a) (property : Property<'b>) : Property<'a> =
property |> map (fun _ -> a)

let private bindGen
Expand Down Expand Up @@ -323,7 +323,7 @@ module PropertyBuilder =
member __.Counterexample(m : Property<'a>, [<ProjectionParameter>] f : 'a -> string) : Property<'a> =
m |> Property.bind (fun x ->
Property.counterexample (fun () -> f x)
|> Property.map (fun () -> x))
|> Property.set x)

[<CustomOperation("where", MaintainsVariableSpace = true)>]
member __.Where(m : Property<'a>, [<ProjectionParameter>] p : 'a -> bool) : Property<'a> =
Expand Down

0 comments on commit d7886e0

Please sign in to comment.