summaryrefslogtreecommitdiff
path: root/tests/tui_div.c
diff options
context:
space:
mode:
authorhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-13 14:50:26 +0000
committerhanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4>2000-12-13 14:50:26 +0000
commitcc340e50eca22701c92b9ef0922f92e6c14c683b (patch)
treedc7f85507eaf62aada115064d50aedf1e290eca8 /tests/tui_div.c
parent3035f62d87667e08ac5370bca1e47fe8f683c2e8 (diff)
downloadmpfr-cc340e50eca22701c92b9ef0922f92e6c14c683b.tar.gz
Take into account Inf, Nans ; clear the flags of the return variable
in most function calls. Tests updated accordingly git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@852 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tui_div.c')
-rw-r--r--tests/tui_div.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tui_div.c b/tests/tui_div.c
index 4b1aff785..ac94e8654 100644
--- a/tests/tui_div.c
+++ b/tests/tui_div.c
@@ -83,6 +83,10 @@ int main(argc,argv) int argc; char *argv[];
}
}
#endif
+ check(1, 1.0/0.0, GMP_RNDN, 0.0);
+ check(1, -1.0/0.0, GMP_RNDN, -0.0);
+ check(1, 0.0/0.0, GMP_RNDN, 0.0/0.0);
+ check(0, 0.0, GMP_RNDN, 0.0/0.0);
check(948002822, 1.22191250737771397120e+20, GMP_RNDN,
7.758352715731357946e-12);
check(1976245324, 1.25296395864546893357e+232, GMP_RNDZ,