Hi!
In a patch that I am writing I am getting doctest failures from sage but
when I run the code "by hand" it works. Specifically, inside sage I get see
the following behaviour
sage: res=ResidueSequence(3,[0,0,1], [0,1,2]); res
Residue sequence (0,1,2) of level 3
sage: for t in res.standard_tableaux():
... print t
[[[1, 2, 3]], [], []]
[[[1, 2], [3]], [], []]
[[[1], [3]], [], [[2]]]
[[[1]], [], [[2, 3]]]
[[], [[1, 2, 3]], []]
[[], [[1, 2], [3]], []]
[[], [[1], [3]], [[2]]]
[[], [[1]], [[2, 3]]]
whereas when I rebuild sage and run sage -t tableau_tuples.py then I get
the following error:
File
"/usr/local/src/sage/sage-5.1/devel/sage-combinat/sage/combinat/tableau_tuple.py",
line 3605:
sage: for t in res.standard_tableaux():
print t
Expected:
[[[1, 2, 3]], [], []]
[[[1, 2], [3]], [], []]
[[[1], [3]], [], [[2]]]
[[[1]], [], [[2, 3]]]
[[], [[1, 2, 3]], []]
[[], [[1, 2], [3]], []]
[[], [[1], [3]], [[2]]]
[[], [[1]], [[2, 3]]]
Got:
[[[1, 2, 3]], [], []]
[[[1, 2], [3]], [], []]
[[], [[1, 2, 3]], []]
[[], [[1, 2], [3]], []]
**********************************************************************
1 items had failures:
1 of 5 in __main__.example_137
***Test Failed*** 1 failures.
Incidentally, the answer returned from in side sage is correct and that
returned by the doctest is wrong.
To me this looks it might be a bug in the doctest code but I am not
sufficiently confident that it is not something that I am doing. I am
running
Sage Version 5.1, Release Date: 2012-07-09
on a macbook pro running lion. I'd post the code which gives this error
except that I haven't managed to isolate it to a reasonably sized block of
code.
Andrew
--
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org