Opened 8 years ago

Last modified 7 years ago

#12815 closed defect

bugs in doctesting script for examples with tolerance — at Initial Version

Reported by: mstreng Owned by: mvngu
Priority: critical Milestone: sage-5.7
Component: doctest coverage Keywords: tolerance doctest
Cc: jhpalmieri, kcrisman Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: 12493 Stopgaps:


When testing the file


The name blah is undefined::

    sage: blah+blah

Here's a doctest that is out of tolerance::

    sage: 100+10000000000 # abs tol 0.1
    sage: 1+1

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:


Doctests with tolerance cannot be followed by empty lines::

    sage: 100+10000000000 # rel tol 0.1


  File "/Users/marcostreng/.sage//tmp/", line 58
    ... ''', res, 0.1, 're
SyntaxError: invalid syntax

Change History (0)

Note: See TracTickets for help on using tickets.