adding more verbose messages to exhaustive quickcheck
authorbulwahn
Wed, 30 Nov 2011 09:21:15 +0100
changeset 45686 cf22004ad55d
parent 45685 e2e928af750b
child 45687 a07654c67f30
adding more verbose messages to exhaustive quickcheck
src/HOL/Tools/Quickcheck/quickcheck_common.ML
--- a/src/HOL/Tools/Quickcheck/quickcheck_common.ML	Wed Nov 30 09:21:11 2011 +0100
+++ b/src/HOL/Tools/Quickcheck/quickcheck_common.ML	Wed Nov 30 09:21:15 2011 +0100
@@ -153,6 +153,10 @@
     fun test_card_size test_fun (card, size) =
       (* FIXME: why decrement size by one? *)
       let
+        val _ =
+          Quickcheck.message ctxt ("[Quickcheck-exhaustive] Test " ^
+            (if size = 0 then "" else "data size: " ^ string_of_int (size - 1) ^ " and ") ^
+            "cardinality: " ^ string_of_int card)          
         val (ts, timing) =
           cpu_time ("size " ^ string_of_int size ^ " and card " ^ string_of_int card)
             (fn () => fst (test_fun [card, size - 1]))