Skip to content

Commit 3b41b87

Browse files
author
Matthias Koeppe
committed
src/sage/doctest/parsing.py: Add test
1 parent 4b54e9c commit 3b41b87

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/sage/doctest/parsing.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,20 @@ def parse(self, string, *args):
10711071
'',
10721072
(None, '5 # optional guava\n', 'Integer(5) # optional guava\n'),
10731073
'']
1074+
1075+
TESTS::
1076+
1077+
sage: parse("::\n\n sage: # needs sage.combinat\n sage: from sage.geometry.polyhedron.combinatorial_polyhedron.conversions \\\n ....: import incidence_matrix_to_bit_rep_of_Vrep\n sage: P = polytopes.associahedron(['A',3])\n\n")
1078+
['::\n\n',
1079+
'',
1080+
(None,
1081+
'from sage.geometry.polyhedron.combinatorial_polyhedron.conversions import incidence_matrix_to_bit_rep_of_Vrep\n',
1082+
'from sage.geometry.polyhedron.combinatorial_polyhedron.conversions import incidence_matrix_to_bit_rep_of_Vrep\n'),
1083+
'',
1084+
(None,
1085+
"P = polytopes.associahedron(['A',3])\n",
1086+
"P = polytopes.associahedron(['A',Integer(3)])\n"),
1087+
'\n']
10741088
"""
10751089
# Regular expressions
10761090
find_sage_prompt = re.compile(r"^(\s*)sage: ", re.M)

0 commit comments

Comments
 (0)