src/Tools/quickcheck.ML
changeset 36610 bafd82950e24
parent 35625 9c818cab0dd0
child 36960 01594f816e3a
equal deleted inserted replaced
36609:6ed6112f0a95 36610:bafd82950e24
   293               (v, ProofContext.read_typ ctxt arg)
   293               (v, ProofContext.read_typ ctxt arg)
   294         | _ => (apfst o parse_test_param ctxt) (name, arg);
   294         | _ => (apfst o parse_test_param ctxt) (name, arg);
   295 
   295 
   296 fun quickcheck_params_cmd args thy =
   296 fun quickcheck_params_cmd args thy =
   297   let
   297   let
   298     val ctxt = ProofContext.init thy;
   298     val ctxt = ProofContext.init_global thy;
   299     val f = fold (parse_test_param ctxt) args;
   299     val f = fold (parse_test_param ctxt) args;
   300   in
   300   in
   301     thy
   301     thy
   302     |> (Data.map o apsnd o map_test_params) f
   302     |> (Data.map o apsnd o map_test_params) f
   303   end;
   303   end;