More on integer division

Alastair Reid reid at reid-consulting-uk.ltd.uk
Mon Jul 1 16:03:55 EDT 2002


> However, it's easy to write a program to verify such results,
> assuming you trust your addition and multiplication and comparisons:

> [...]

> Also, looking at arith003, there are a few more test cases I might
> include, with quotient/remainder, say, 3/4 or 1/2 of maxInt.  You
> also don't seem to test arithmetic with large negative operands in
> the cases I saw.
 
Send us improved testsuites and we'll happily add them to our suites.

The most relevant Hugs testsuites are:

  intTest.{hs,input,output}

in

  http://cvs.haskell.org/cgi-bin/cvsweb.cgi/hugs98/tests/libs/

and (somewhat lamer):

  arith.{hs,input,output}
  maxint.{hs,input,output}

in

  http://cvs.haskell.org/cgi-bin/cvsweb.cgi/hugs98/tests/rts/


Best bet is to cvs checkout hugs98 (we exclude the testsuite from
distributions) and follow the instructions in hugs98/tests/Readme

--
Alastair Reid



More information about the Glasgow-haskell-bugs mailing list