#5647: Random testing improvement (follow up to #5318)
-------------------------+--------------------------------------------------
 Reporter:  nthiery      |       Owner:  mabshoff    
     Type:  enhancement  |      Status:  new         
 Priority:  major        |   Milestone:  sage-feature
Component:  doctest      |    Keywords:              
-------------------------+--------------------------------------------------
 Improve #5318 to allow for the additional syntax:

   random_testing(tester, handle_iteration = True)

 In that case, the wrapper function would handle all the iteration running
 boiler plate. When the seed is not specified by the caller, the
 boilerplate  could further set explicitly the seed in randstate.pyx to a
 random value at each iteration. Then, reproducing the bug would involve
 running a single iteration.

 With a bit of magic one could allow for the following syntactic sugar

     @random_testing(handle_iteration = True)
     def tester(...):
         ...

 Possible implementation: when random_testing receives only keyword
 arguments, without a function, it returns a copy of itself with partial
 specialization of those keyword arguments (using e.g. the upcoming
 default_keyword patch by Mike Hansen)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5647>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to