diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-09-17 11:05:18 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-09-17 11:05:18 +0000 |
commit | a73b8d76550cf1127005d31c068ba2c46b4ebbfe (patch) | |
tree | 4e8e83f87e64264033e53756049db8219beb79aa /tests/tmodf.c | |
parent | 51084927b5e849f205f533ef621a9d016c1e17a9 (diff) | |
download | mpfr-a73b8d76550cf1127005d31c068ba2c46b4ebbfe.tar.gz |
modf.c: take care of user exponent range (possible underflow/overflow)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4846 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tmodf.c')
-rw-r--r-- | tests/tmodf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tmodf.c b/tests/tmodf.c index f873e53e5..c278c38ca 100644 --- a/tests/tmodf.c +++ b/tests/tmodf.c @@ -110,6 +110,11 @@ main (int argc, char *argv[]) check ("61680","3.52935791015625e-1", "61680.352935791015625", 53, 53, 53, 0, GMP_RNDZ); check ("-53968","-3.529052734375e-1", "-53970.352935791015625", 13, 13, 53, 2, GMP_RNDZ); check ("61632","3.525390625e-1", "61648.352935791015625", 10, 10, 53, -2, GMP_RNDZ); + check ("61680", "0", "61680", 53, 53, 53, 0, GMP_RNDZ); + check ("-53968","0", "-53970", 13, 13, 53, 1, GMP_RNDZ); + check ("-43392","0", "-43399", 13, 13, 53, 1, GMP_RNDU); + check ("-52720","0", "-52719", 13, 13, 53, -1, GMP_RNDD); + check ("61632", "0", "61648", 10, 10, 53, -1, GMP_RNDZ); tests_end_mpfr (); return 0; |