MezzoNZ / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

need to trim space at end of python code for doctest. #187

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Doctests are extremely unforgiving. Suppose a user has to write code
to satisfy the following doctest written by a tutorial writer
>>> double(1)
2 

where, there's extra blank space i.e., rewriting the code using "_" to
indicate white spaces, we'd have
>>>_double(1)
2____

... it would be essentially impossible for the end user to realise what is
wrong.  To prevent something like this from occurring, lines of code should
be trimmed from any extra spaces.

Original issue reported on code.google.com by andre.ro...@gmail.com on 6 Oct 2008 at 9:26

GoogleCodeExporter commented 8 years ago
Fixed prior to release 1.0alpha1 but forgot to note the change here.

Original comment by andre.ro...@gmail.com on 10 Oct 2008 at 10:43