#788: [with patch; needs review] fix "random low order bits" doctests to use
"..."
---------------------+------------------------------------------------------
 Reporter:  was      |        Owner:  anakha  
     Type:  defect   |       Status:  new     
 Priority:  major    |    Milestone:  sage-3.2
Component:  doctest  |   Resolution:          
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by ddrake):

 The patches apply, and everything works except for one doctest:
 {{{
 sage -t  devel/sage-
 
main/sage/rings/polynomial/polynomial_element.pyx**********************************************************************
 File "/opt/sage-3.2.alpha0/tmp/polynomial_element.py", line 1940:
     sage: f.factor()
 Expected:
     (1.0*x - 1.00000... + 1.0000...*I) * (1.0*x - 1.00000... +
 0.999989...*I) * (1.0*x - 0.9999... + 1.00000...*I) * (1.0*x + 0.99999...
 - 1.00000...*I) * (1.0*x + 0.999996... - 0.99998...*I) * (1.0*x +
 1.00001... - 1.00000...*I)
 Got:
     (1.0*x - 1.00000621124 + 1.00000779481*I) * (1.0*x - 1.00000364483 +
 0.999990723518*I) * (1.0*x - 0.99999014393 + 1.00000148167*I) * (1.0*x +
 0.99999217079 - 1.00000864146*I) * (1.0*x + 0.999996430878 -
 0.999988898998*I) * (1.0*x + 1.00001139833 - 1.00000245954*I)
 **********************************************************************
 1 items had failures:
    1 of  74 in __main__.example_46
 ***Test Failed*** 1 failures.
 For whitespace errors, see the file
 /opt/sage-3.2.alpha0/tmp/.doctest_polynomial_element.py
          [6.7 s]
 }}}
 This is on Ubuntu Intrepid amd64, on a Core 2 Quad processor. The doctest
 fails every time, and no other test does. It looks like the `0.999989` in
 the second factor should be `0.0.99999`.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/788#comment:3>
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