Hi,
I was recently working with some doctests and noticed the following
weirdness. Any idea as to what might be going on. I've tested this
with sage 4.8 and 5.0.
The issue seems to be with the use of double triple quotes vs single
triple quotes for the doctest. I'm not sure why it makes a
difference, but it seems to be the difference between a pass and a
fail.
Best regards,
Ryan Grout
--
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
import string
#this test case will pass
def TestCase1():
r'''
Examples::
sage: ascii()
'abcdefghijklmnopqrstuvwxyz'
'''
pass
#this test case will fail
def TestCase2():
r"""
Examples::
sage: ascii()
'abcdefghijklmnopqrstuvwxyz'
"""
pass
def ascii():
return string.ascii_lowercase