On Wed, Nov 2, 2011 at 3:49 PM, Keshav Kini <[email protected]> wrote:
> I was just thinking about this a couple of days ago. I think it should be
> quite possible.
>
> In general we could easily have a contributed doctest collection that we
> don't ship but do keep on sage.math, say. Maybe this would be easiest if
> everything were stored as .rst files.
>
> To doctest an SWS file, one could extract the input/output pairs from the
> sws by looking for {{{INPUT///OUTPUT}}} segments in
> sage_worksheet/worksheet.txt inside the extracted sws. The worksheet does
> some preprocessing on input so that would have to be duplicated by the
> resulting doctest. I'm not sure of the details.

I've always had this on my mental todo list, at least since 2007.  It
needs to get implemented. Having

   sage -t foobar.sws

work would be great.

 -- William

>
> Anyway, sounds like it's worth a ticket...
>
> -Keshav
>
> ----
> Join us in #sagemath on irc.freenode.net !
>
> --
> To post to this group, send an email to [email protected]
> To unsubscribe from this group, send an email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to