src/HOL/Spec_Check/output_style.ML
changeset 52251 2c141c169624
parent 52250 4dced3d4155c
child 52252 81fcc11d8c65
equal deleted inserted replaced
52250:4dced3d4155c 52251:2c141c169624
    90 fun pad wd = StringCvt.padLeft #"0" wd o Int.toString
    90 fun pad wd = StringCvt.padLeft #"0" wd o Int.toString
    91 
    91 
    92 fun new ctxt tag =
    92 fun new ctxt tag =
    93   let
    93   let
    94     val gen_target = Config.get_generic ctxt Spec_Check.gen_target
    94     val gen_target = Config.get_generic ctxt Spec_Check.gen_target
    95     val _ = writeln ("[testing " ^ tag ^ "... ") (* TODO: Output without line break *)
    95     val _ = writeln ("[testing " ^ tag ^ "... ")
    96     fun finish ({count, ...}, badobjs) = case (count, badobjs) of
    96     fun finish ({count, ...}, badobjs) = case (count, badobjs) of
    97         (0, []) => writeln ("no valid cases generated]")
    97         (0, []) => writeln ("no valid cases generated]")
    98       | (n, []) => writeln (
    98       | (n, []) => writeln (
    99             if n >= gen_target then "ok]"
    99             if n >= gen_target then "ok]"
   100             else "ok on " ^ string_of_int n ^ "; " ^ string_of_int gen_target ^ " required]")
   100             else "ok on " ^ string_of_int n ^ "; " ^ string_of_int gen_target ^ " required]")