On Sun, Jun 21, 2009 at 6:20 PM, William Stein<wst...@gmail.com> wrote: > > On Mon, Jun 22, 2009 at 1:41 AM, Ondrej Certik<ond...@certik.cz> wrote: >> >> Hi, >> >> one of the rule for getting code into Sage is 100% doctesting --- what >> does it mean exactly? >> At least one doctest per function/method? > > Yes. > >> Is there some tool to check >> that? > > Yes. > >> I think I remember there was some script for it, but I can't >> find it now. > > sage -coverage file.py > > I wrote the first version of that script during a docday so I could > figure out what to doctest. It subsequently got traction.
I wrote a similar script for sympy here: http://github.com/certik/sympy/blob/44725bb2720afdbb2997c4184f8d9919e151af86/bin/coverage_doctest.py it's still being reviewed, but I copied lots of parts from sage-coverage.py. Do you think you would please allow me to use my script under the BSD license? If that is not possible, I'll rewrite the parts, so that it's not a derived work. Thanks, Ondrej --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---