File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,12 @@ module Gen : sig
325
325
val graft_corners : 'a t -> 'a list -> unit -> 'a t
326
326
(* * [graft_corners gen l ()] makes a new generator that enumerates
327
327
the corner cases in [l] and then behaves like [g].
328
+
329
+ Note that [graft_corners gen l ()] is stateful, meaning that once the
330
+ elements of [l] have been emitted, subsequent calls will not reproduce
331
+ them. It is therefore recommended that separate tests each use a fresh
332
+ generator.
333
+
328
334
@since 0.6 *)
329
335
330
336
val int_pos_corners : int list
Original file line number Diff line number Diff line change @@ -634,6 +634,11 @@ module Gen : sig
634
634
Does not shrink if the test fails on a grafted value.
635
635
Shrinks towards [gen] otherwise.
636
636
637
+ Note that [graft_corners gen l ()] is stateful, meaning that once the
638
+ elements of [l] have been emitted, subsequent calls will not reproduce
639
+ them. It is therefore recommended that separate tests each use a fresh
640
+ generator.
641
+
637
642
@since 0.6 *)
638
643
639
644
val int_pos_corners : int list
You can’t perform that action at this time.
0 commit comments