summaryrefslogtreecommitdiff
path: root/tests/tcmp_d.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-09-25 08:15:42 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-09-25 08:15:42 +0000
commitfd5e5221f3d42f1d1e29d99a15ac43a76460bf9b (patch)
tree332aef339e58cafd2dc32ee33efc6e2cbb66852a /tests/tcmp_d.c
parent788b255e420f8d4ba0f0b43ce87b00b62d60a896 (diff)
downloadmpfr-fd5e5221f3d42f1d1e29d99a15ac43a76460bf9b.tar.gz
Changed the remaining stderr to stdout.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2449 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcmp_d.c')
-rw-r--r--tests/tcmp_d.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/tcmp_d.c b/tests/tcmp_d.c
index 66597b32d..a91c884c6 100644
--- a/tests/tcmp_d.c
+++ b/tests/tcmp_d.c
@@ -28,26 +28,26 @@ MA 02111-1307, USA. */
int
main (void)
{
- mpfr_t x;
-
+ mpfr_t x;
+
tests_start_mpfr ();
mpfr_init2(x, 53);
mpfr_set_d(x, 2.34763465, GMP_RNDN);
- if (mpfr_cmp_d(x, 2.34763465)!=0) {
- printf("Error in mpfr_cmp_d(%1.20f,%1.20f)\n",mpfr_get_d1 (x), 2.34763465);
- mpfr_clear(x);
+ if (mpfr_cmp_d(x, 2.34763465)!=0) {
+ printf("Error in mpfr_cmp_d(%1.20f,%1.20f)\n",mpfr_get_d1 (x), 2.34763465);
+ mpfr_clear(x);
exit(1);
}
if (mpfr_cmp_d(x, 2.345)<=0) {
printf("Error in mpfr_cmp_d(%1.20f,%1.20f)\n",mpfr_get_d1 (x), 2.345);
- mpfr_clear(x);
+ mpfr_clear(x);
exit(1);
}
if (mpfr_cmp_d(x, 2.4)>=0) {
printf("Error in mpfr_cmp_d(%1.20f,%1.20f)\n",mpfr_get_d1 (x), 2.4);
- mpfr_clear(x);
+ mpfr_clear(x);
exit(1);
}
@@ -63,11 +63,11 @@ main (void)
mpfr_ui_div (x, 1, x, GMP_RNDU);
if (mpfr_cmp_d (x, 0.0) == 0)
{
- fprintf (stderr, "Error in mpfr_cmp_ui (Inf, 0)\n");
+ printf ("Error in mpfr_cmp_ui (Inf, 0)\n");
exit (1);
}
- mpfr_clear(x);
+ mpfr_clear(x);
tests_end_mpfr ();
return 0;