#12022: failing doctest in integer_vector.py (gale ryser theorem) / multiple
solutions
----------------------------------------------------------------------------------------+
Reporter: emil
| Owner: mvngu
Type: defect
| Status: new
Priority: minor
| Milestone: sage-4.8
Component: doctest
| Keywords: doctest, combinat, gale, ryser, multiple solutions
Work_issues: create TEST section with unique solution, flag failing test as
"no test" | Upstream: N/A
Reviewer:
| Author:
Merged:
| Dependencies:
----------------------------------------------------------------------------------------+
{{{
sage -t -force_lib "devel/sage/sage/combinat/integer_vector.py"
**********************************************************************
File "/mnt/sda6/COMPILE/sage-4.7.2/devel/sage/sage/combinat/
integer_vector.py", line 262:
sage: print gale_ryser_theorem(p1, p2)
Expected:
[1 1 0]
[1 0 1]
[0 1 0]
Got:
[0 1 1]
[1 1 0]
[1 0 0]
**********************************************************************
File "/mnt/sda6/COMPILE/sage-4.7.2/devel/sage/sage/combinat/
integer_vector.py", line 298:
sage: print gale_ryser_theorem(p1, p2, algorithm="gale")
Expected:
[1 1 1 0 0]
[1 1 0 0 1]
[1 0 1 0 0]
[0 0 0 1 0]
Got:
[1 0 1 1 0]
[1 0 1 0 1]
[1 1 0 0 0]
[0 1 0 0 0]
**********************************************************************
}}}
This is about the gale ryser theorem. The row sum of the matrix should be
p1 and the column sum of the matrix should be p2. For the first failing
test:
p1 = [2,2,1], p2 = [2,2,1]
which is obviously true for both matrices.
Same is true for the second doctest error, both matrices have
[3,3,2,1] [3,2,2,1,1] as row resp. column sum.
Proposed fix is to create a TEST section with an example with an unique
solution and flag the above doctests as "no test"
reportet in:
[http://groups.google.com/group/sage-
devel/browse_thread/thread/e1886d5ba5ade945]
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12022>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.