Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#940 : doctest for large octave inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Monteil committed Oct 27, 2018
1 parent 1a64da2 commit 2c7f645
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/interfaces/octave.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ class Octave(Expect):
'c =\n\n 1\n 7.21645e-16\n -7.21645e-16\n\n'
sage: octave.eval("c") # optional - octave; random output
'c =\n\n 1\n 7.21645e-16\n -7.21645e-16\n\n'
TESTS:
We check that the interface can handle large inputs (see :trac:`940`)::
sage: t = '"{}"'.format(10^10000)
sage: a = octave(t) # optional - octave
sage: str(a) == ' {}'.format(10^10000) # optional - octave
True
"""

def __init__(self, maxread=None, script_subdirectory=None, logfile=None,
Expand Down

0 comments on commit 2c7f645

Please sign in to comment.