More on integer division

Simon Marlow simonmar at microsoft.com
Mon Jul 1 07:51:52 EDT 2002


> > I'm shocked that non of the three Haskell implementations had a test
> > suite that caught this problem.
> 
> Take a look at
> fptools/testsuite/tests/ghc-regress/numeric/should_run/arith0011.hs.
> There may be one or two wrong answers lurking in there, but 
> that's a lot
> of results to check by hand!

Actually arith003 was the test I was thinking of, it covers more of the
boundary cases than arith011.  And indeed, having fixed divModInt#,
there *were* several errors in the sample output from that test.

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list