On Tue, Sep 22, 2009 at 8:24 AM, John H Palmieri <[email protected]> wrote:
>
> Ticket #6439 suggests that if code has
>
>   Sage: ...
>
> in an EXAMPLES block, then it should be flagged as an error, because
> presumably the author intended it to say
>
>   sage: ...
>
> and with "Sage: ..." the example isn't actually doctested.

When writing doctests, do people actually type in "sage:", "Sage:",
"SAGE:" or other variations rather than copying it from the Sage
command line? I would usually load the command line, type in the
doctesting code, and copy the input and output into the relevant
docstring. This is a simple use case, but any typo input at the
command line would result in Sage complaining. I find that a good way
to catch typos early before submiting patches.

My 2-cent.

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
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