On Thu, Nov 13, 2014 at 8:53 AM, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote: > On 2014-11-13 17:07, William Stein wrote: >> >> It would be nice if somebody wrote a more sophisticated scanner to >> compute the number of "doctest units", as you suggest above. > > I'm sure this could be added easily to the doctest framework. I don't really > see the point though... a single "doctest unit" can contain many independent > tests.
We could define a doctest unit to be a sequence of inputs followed by some verified output, terminated by a new input. So: sage: 2+2 4 sage: a = 5 sage: 3+a 8 Is *two* doctest units. If we're testing anything at all about running code except "it didn't crash" (e..g, the "a=5" line), then this seems meaningful. -- William -- William Stein Professor of Mathematics University of Washington http://wstein.org -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.