#5959: Better doctest for __cmp__ in primes.py
----------------------+-----------------------------------------------------
 Reporter:  kcrisman  |       Owner:  mabshoff
     Type:  defect    |      Status:  new     
 Priority:  minor     |   Milestone:  sage-4.0
Component:  doctest   |    Keywords:          
----------------------+-----------------------------------------------------
 From sage-devel, regarding whether
 {{{
 Primes()>x^2+x
 }}}
 or not



 > You should change the doctest to
 >
 > sage: P != x^2 + x
 > True
 >
 > The comparison is completely arbitrary and will be machine specific.
 > However equality or not is not arbitrary.

 >
 > > sage: cmp(SR(3), x) in [-1,1]
 > > True
 >

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5959>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to