Skip to content

Commit 74cd947

Browse files
committed
first shrink var, then recurse
1 parent 0fbbf54 commit 74cd947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/lin_api.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ module MakeCmd (ApiSpec : ApiSpec) : Lin.CmdSpec = struct
239239
| Fun.Ret_ignore _ty -> Shrink.nil
240240
| Fun.(Fn (State, fdesc_rem)) ->
241241
(function (Args.FnState (index,args)) ->
242-
Iter.(map (fun args -> Args.FnState (index,args)) (gen_shrinker_of_desc fdesc_rem args)
242+
Iter.(map (fun index -> Args.FnState (index,args)) (Lin.Var.shrink index)
243243
<+>
244-
map (fun index -> Args.FnState (index,args)) (Lin.Var.shrink index))
244+
map (fun args -> Args.FnState (index,args)) (gen_shrinker_of_desc fdesc_rem args))
245245
| _ -> failwith "FnState: should not happen")
246246
| Fun.(Fn ((Gen (arg_arb,_) | GenDeconstr (arg_arb, _, _)), fdesc_rem)) ->
247247
(match arg_arb.shrink with

0 commit comments

Comments
 (0)