Skip to content

Commit 3ff1fba

Browse files
TysonMNmoodmosaic
authored andcommitted
makes createTree tests pass again while also simplifying
1 parent dfe8671 commit 3ff1fba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Hedgehog/Shrink.fs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,9 @@ module Shrink =
100100

101101

102102
let inline createTree (destination : ^a) (x : ^a) =
103-
let one = LanguagePrimitives.GenericOne
104103
let rec binarySearchTree ((destination : ^a), (x : ^a)) =
105104
let xs =
106-
towards (destination + one) x
107-
|> Seq.cons destination
105+
towards destination x
108106
|> Seq.pairwise
109107
|> Seq.map binarySearchTree
110108
Node (x, xs)

0 commit comments

Comments
 (0)