#21078: failing doctest with TamariIntervalPosets_size
---------------------------------+------------------------
       Reporter:  vdelecroix     |        Owner:
           Type:  defect         |       Status:  new
       Priority:  blocker        |    Milestone:  sage-7.3
      Component:  combinatorics  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------

Comment (by vdelecroix):

 Note that the failure is order dependent because of `UniqueRepresentation`
 that thinks that Sage Integer 1 is the same as Python int 1.
 {{{
 sage: from sage.combinat.interval_posets import TamariIntervalPosets_size
 sage: T1 = TamariIntervalPosets_size(1)
 sage: T2 = TamariIntervalPosets_size(1r)
 sage: print (parent(T1._size), parent(T2._size))
 (Integer Ring, Integer Ring)
 }}}
 vs
 {{{
 sage: from sage.combinat.interval_posets import TamariIntervalPosets_size
 sage: T2 = TamariIntervalPosets_size(1r)
 sage: T1 = TamariIntervalPosets_size(1)
 sage: print (parent(T1._size), parent(T2._size))
 (<type 'int'>, <type 'int'>)
 }}}

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

Reply via email to