#5766: [with patch; with review, needs work] improve coverage of
structure/formal_sum.py
------------------------------+---------------------------------------------
Reporter: was | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: sage-4.0
Component: basic arithmetic | Keywords:
------------------------------+---------------------------------------------
Comment(by cremona):
Sorry, but on my 32-bit laptop I get
{{{
**********************************************************************
File "/home/john/sage-3.4.2.alpha0/devel/sage-
tests/sage/structure/formal_sum.py", line 333:
sage: a
Expected:
2/3 - 3*4/5 + 7*2 -- comparing Mod(2,3) and
rationals ill-defined
Got:
7*2 + 2/3 - 3*4/5
**********************************************************************
File "/home/john/sage-3.4.2.alpha0/devel/sage-
tests/sage/structure/formal_sum.py", line 336:
sage: a._repr_()
Expected:
'2/3 - 3*4/5 + 7*2'
Got:
'7*2 + 2/3 - 3*4/5'
**********************************************************************
}}}
Perhaps all formal sums should be sorted? As part of the reduce() method
(which should then be called after creation)?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5766#comment:6>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---