On Jul 14, 2009, at 6:29 AM, Alan Bromborsky wrote: > > Ondrej Certik wrote: >> Hi, >> >> from now on a patch in order to pass a review, it must have at least >> one example doctest for each function/method (except those beginning >> with _). >> To test it, use the bin/coverage_doctest.py script, like this: >> >> $ bin/coverage_doctest.py sympy/integrals/integrals.py >> ---------------------------------------------------------------------- >> sympy/integrals/integrals.py >> >> Missing documentation: >> * function(self) >> * limits(self) >> * variables(self) >> * doit(self, **hints) >> >> >> Missing doctests: >> * transform(self, x, mapping, inverse=False) >> >> SCORE sympy/integrals/integrals.py: 37% (3 of 8) >> ---------------------------------------------------------------------- >> >> >> Our goal is for every file in sympy to have 100%. >> >> For rationale, see: >> >> http://groups.google.com/group/sympy/browse_thread/thread/45aa9de214ed6f76/ >> >> as written there, this is not for testing a functionality, but to >> show >> the user how to use the function on an example and to use sphinx's >> autodoc to document it. >> >> Ondrej >> >>> >> >> > Is there anyway to use "Example:" with a non-interactive dialog. That > is a small python program that would print out results at the end. You can indent blocks by using "...". If you don't want each line to run, you can wrap it around a function call. For example, see the Variables section in the Gotchas and Pitfalls section in the Sphinx docs (http://certik.github.com/sympy/gotchas.html#variables).
Aaron Meurer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" 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/sympy?hl=en -~----------~----~----~----~------~----~------~--~---
