#17138: LatticePoset: complements() is broken
-------------------------------------+-------------------------------------
       Reporter:  jmantysalo         |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  combinatorics      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jori Mäntysalo     |    Reviewers:  Nathann Cohen
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jmantysalo/latticeposet__complements___is_broken|  
8b4668325a50621a579d59477ef792590304fb44
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vbraun):

 * status:  positive_review => needs_work


Comment:

 Int/string have no stable sort order:
 {{{
 sage -t --long src/sage/combinat/posets/lattices.py
 **********************************************************************
 File "src/sage/combinat/posets/lattices.py", line 433, in
 sage.combinat.posets.lattices.FiniteLatticePoset.complements
 Failed example:
     L.complements()
 Expected:
     {0: [1], 1: [0], 'a': ['b', 'c'], 'b': ['c', 'a'], 'c': ['b', 'a']}
 Got:
     {'a': ['b', 'c'], 'b': ['c', 'a'], 'c': ['b', 'a'], 0: [1], 1: [0]}
 **********************************************************************
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17138#comment:11>
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to