#5621: [with patch, needs review] doctests for calculus.py
---------------------------+------------------------------------------------
 Reporter:  mvngu          |       Owner:  tba                 
     Type:  enhancement    |      Status:  new                 
 Priority:  major          |   Milestone:  sage-3.4.1          
Component:  documentation  |    Keywords:  doctest, calculus.py
---------------------------+------------------------------------------------

Comment(by mvngu):

 The patch {{{trac_5621-doctests-calculus.patch}}} adds doctests to 6
 functions/methods in {{{sage/calculus/calculus.py}}}, raising the coverage
 of that module by 1% to 52%. Interestingly, with the command
 {{{
 sage -coverage
 }}}
 Sage doesn't pick up doctests for functions/methods where there's a blank
 line between the docstring and the function/method. For example, as it now
 stands with Sage 3.4, the function {{{desolve_system_strings()}}} in the
 module {{{sage/calculus/desolvers.py}}} has doctests but Sage doesn't pick
 that up. Doing a doctest coverage on Sage 3.4 shows that the coverage for
 {{{sage/calculus/desolvers.py}}} is at 75%. But after removing the blank
 line between the function signature and its docstring, running the doctest
 coverage again shows that {{{sage/calculus/desolvers.py}}} has 87%
 coverage.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5621#comment:1>
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