summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRelease Manager <release@sagemath.org>2017-12-17 11:51:31 +0100
committerVolker Braun <vbraun.name@gmail.com>2017-12-17 18:53:09 +0100
commit23afee8381260a743165170005025736b50fa019 (patch)
tree42943379c8b8e5b456b409ce4b58fdf0348cdd4a
parentTrac #24315: dancing links: find all solutions using given rows + find first ... (diff)
parenttrac 24326 fixing options doctests in Tamari Intervals (diff)
Trac #24326: TamariIntervalPosets: failing tests in options
When the untested examples in `src/sage/combinat/interval_posets.py` involving `GlobalOptions` are actually tested: {{{ sage -t --long src/sage/combinat/interval_posets.py ********************************************************************** File "src/sage/combinat/interval_posets.py", line 2468, in sage.combinat.interval_posets.TamariIntervalPosets.options Failed example: ip.latex_options.color_decreasing Exception raised: Traceback (most recent call last): File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 515, in _run self.compile_and_execute(example, compiler, test.globs) File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 885, in compile_and_execute exec(compiled, globs) File "<doctest sage.combinat.interval_posets.TamariIntervalPosets.options[1]>", line 1, in <module> ip.latex_options.color_decreasing AttributeError: 'function' object has no attribute 'color_decreasing' ********************************************************************** File "src/sage/combinat/interval_posets.py", line 2471, in sage.combinat.interval_posets.TamariIntervalPosets.options Failed example: ip.latex_options.color_decreasing Exception raised: Traceback (most recent call last): File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 515, in _run self.compile_and_execute(example, compiler, test.globs) File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 885, in compile_and_execute exec(compiled, globs) File "<doctest sage.combinat.interval_posets.TamariIntervalPosets.options[3]>", line 1, in <module> ip.latex_options.color_decreasing AttributeError: 'function' object has no attribute 'color_decreasing' ********************************************************************** File "src/sage/combinat/interval_posets.py", line 2474, in sage.combinat.interval_posets.TamariIntervalPosets.options Failed example: ip.latex_options.color_decreasing Exception raised: Traceback (most recent call last): File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 515, in _run self.compile_and_execute(example, compiler, test.globs) File "/usr/local/src/sage-config/local/lib/python2.7/site- packages/sage/doctest/forker.py", line 885, in compile_and_execute exec(compiled, globs) File "<doctest sage.combinat.interval_posets.TamariIntervalPosets.options[5]>", line 1, in <module> ip.latex_options.color_decreasing AttributeError: 'function' object has no attribute 'color_decreasing' ********************************************************************** }}} URL: https://trac.sagemath.org/24326 Reported by: jdemeyer Ticket author(s): Frédéric Chapoton Reviewer(s): Travis Scrimshaw
-rw-r--r--src/sage/combinat/interval_posets.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/sage/combinat/interval_posets.py b/src/sage/combinat/interval_posets.py
index c332fb2..6777c16 100644
--- a/src/sage/combinat/interval_posets.py
+++ b/src/sage/combinat/interval_posets.py
@@ -973,7 +973,7 @@ class TamariIntervalPoset(Element):
return TamariIntervalPoset(N - 1, new_covers, check=False)
def insertion(self, i):
- """
+ r"""
Return the Tamari insertion of an integer `i` into the
interval-poset ``self``.
@@ -2356,7 +2356,7 @@ class TamariIntervalPoset(Element):
return down.canopee() == up.canopee()
def is_modern(self):
- """
+ r"""
Return ``True`` if ``self`` is a modern Tamari interval.
This is defined by exclusion of a simple pattern in the Hasse diagram,
@@ -2379,7 +2379,7 @@ class TamariIntervalPoset(Element):
return True
def is_exceptional(self):
- """
+ r"""
Return ``True`` if ``self`` is an exceptional Tamari interval.
This is defined by exclusion of a simple pattern in the Hasse diagram,
@@ -2464,15 +2464,15 @@ class TamariIntervalPosets(UniqueRepresentation, Parent):
EXAMPLES::
- sage: ip = TamariIntervalPoset(4,[(2,4),(3,4),(2,1),(3,1)])
- sage: ip.latex_options.color_decreasing # known bug (Trac #24326)
- 'red'
- sage: TamariIntervalPosets.options.latex_color_decreasing='green'
- sage: ip.latex_options.color_decreasing # known bug (Trac #24326)
- 'green'
- sage: TamariIntervalPosets.options._reset()
- sage: ip.latex_options.color_decreasing # known bug (Trac #24326)
- 'red'
+ sage: TIP = TamariIntervalPosets
+ sage: TIP.options.latex_color_decreasing
+ red
+ sage: TIP.options.latex_color_decreasing='green'
+ sage: TIP.options.latex_color_decreasing
+ green
+ sage: TIP.options._reset()
+ sage: TIP.options.latex_color_decreasing
+ red
"""
NAME = 'TamariIntervalPosets'
module = 'sage.combinat.interval_posets'