#14145: Problems with contains for Tableau, TableauTuples and PartitionTuples
---------------------------------------------------+------------------------
Reporter: andrew.mathas | Owner:
sage-combinat
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.10
Component: combinatorics | Resolution:
Keywords: days45 | Work issues:
Report Upstream: N/A | Reviewers: Andrew
Mathas, Travis Scrimshaw
Authors: Travis Scrimshaw, Andrew Mathas | Merged in:
Dependencies: #13605 | Stopgaps:
---------------------------------------------------+------------------------
Changes (by jdemeyer):
* status: positive_review => needs_work
Comment:
{{{
sage -t --long devel/sage/sage/combinat/combinat.py
**********************************************************************
File "devel/sage/sage/combinat/combinat.py", line 1365, in
sage.combinat.combinat.CombinatorialClass.__call__
Failed example:
p5([2,1])
Expected:
Traceback (most recent call last):
...
ValueError: [2, 1] is not in Partitions of the integer 5
Got:
<BLANKLINE>
Traceback (most recent call last):
File "/mazur/release/merger/sage-5.10.beta2/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 454, in _run
self.execute(example, compiled, test.globs)
File "/mazur/release/merger/sage-5.10.beta2/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 813, in execute
exec compiled in globs
File "<doctest
sage.combinat.combinat.CombinatorialClass.__call__[5]>", line 1, in
<module>
p5([Integer(2),Integer(1)])
File "parent.pyx", line 930, in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:8064)
File "coerce_maps.pyx", line 82, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3815)
File "coerce_maps.pyx", line 77, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3717)
File "/mazur/release/merger/sage-5.10.beta2/local/lib/python2.7
/site-packages/sage/combinat/partition.py", line 4043, in
_element_constructor_
raise ValueError('%s is not an element of %s'%(lst, self))
ValueError: [2, 1] is not an element of Partitions of the integer 5
**********************************************************************
}}}
{{{
sage -t --long devel/sage/sage/combinat/sf/sf.py
**********************************************************************
File "devel/sage/sage/combinat/sf/sf.py", line 129, in
sage.combinat.sf.sf.SymmetricFunctions
Failed example:
p['something']
Expected:
Traceback (most recent call last):
...
ValueError: ['s', 'o', 'm', 'e', 't', 'h', 'i', 'n', 'g'] is not a
valid partition
Got:
<BLANKLINE>
Traceback (most recent call last):
File "/mazur/release/merger/sage-5.10.beta2/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 454, in _run
self.execute(example, compiled, test.globs)
File "/mazur/release/merger/sage-5.10.beta2/local/lib/python2.7
/site-packages/sage/doctest/forker.py", line 813, in execute
exec compiled in globs
File "<doctest sage.combinat.sf.sf.SymmetricFunctions[13]>", line 1,
in <module>
p['something']
File "/mazur/release/merger/sage-5.10.beta2/local/lib/python2.7
/site-packages/sage/combinat/sf/sfa.py", line 845, in __getitem__
c = C(list(c))
File "parent.pyx", line 930, in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:8064)
File "coerce_maps.pyx", line 82, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3815)
File "coerce_maps.pyx", line 77, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3717)
File "/mazur/release/merger/sage-5.10.beta2/local/lib/python2.7
/site-packages/sage/combinat/partition.py", line 4043, in
_element_constructor_
raise ValueError('%s is not an element of %s'%(lst, self))
ValueError: ['s', 'o', 'm', 'e', 't', 'h', 'i', 'n', 'g'] is not an
element of Partitions
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14145#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.