[ros-bugs] [Bug 1255] mathematic display/computation and python compatibility

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Wed Jul 9 00:05:42 CEST 2008


http://www.reactos.org/bugzilla/show_bug.cgi?id=1255





--- Comment #7 from jeanmichel.123 <jeanmichel.123 at free.Fr>  2008-07-09 00:05:41 CET ---
(In reply to comment #6)
> In version 0.3.5, the line test_divmod ... appears.

test_divmod still fails, but this is not for the same reason.

divmod(-12,7)  looks like working, as does the 12 first tests of the
test_divmod function.

However, test_divmod fails due to following line:
 self.assert_(not fcmp(divmod(3.25, 1.0), (3.0, 0.25)))

In this case, divmod(3.25, 1.0) does not return (3.0, 0.25) but  (3.0,
0.00000236366971307e-308).

I also did
divmod(3.0, 0.25)
This returned 
(12.0, 0.00000236366971307e-308).

Note also that the crash does not come from 
not fcmp(divmod(3.25, 1.0), (3.0, 0.25))

but comes from the call to the assert method.

I am wondering: Aren't divmod imprecision, and assert crash two distinct
issues?


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Ros-bugs mailing list