#12815: bugs in doctesting script for examples with tolerance
-----------------------+----------------------------------------------------
Reporter: mstreng | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: doctest | Keywords: tolerance doctest
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies: 12493
Stopgaps: |
-----------------------+----------------------------------------------------
When testing the file
{{{
"""
EXAMPLES:
The name blah is undefined::
sage: blah+blah
blahblah
Here's a doctest that is out of tolerance::
sage: 100+10000000000 # abs tol 0.1
10000000000
sage: 1+1
2
"""
}}}
I get
{{{
File "/Users/marcostreng/tmp/test.sage", line 6:
sage: blah+blah
Out of tolerance 10000000000.0 vs 10000000100.0
}}}
So the error of "blah is undefined" is not printed, while the "out of
tolerance" is printed for the wrong test.
Also, there is a bug when a test with tolerance is the last test:
{{{
"""
EXAMPLES:
Doctests with tolerance cannot be followed by empty lines::
sage: 100+10000000000 # rel tol 0.1
10000000000
"""
}}}
yields
{{{
File "/Users/marcostreng/.sage//tmp/test_71331.py", line 58
... ''', res, 0.1, 're
^
SyntaxError: invalid syntax
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12815>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.