summaryrefslogtreecommitdiff
path: root/tests/tacosh.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-04 13:51:03 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-04 13:51:03 +0000
commit6603494a0ea3532c7e23ba0244d0cd0f7fdc9aca (patch)
tree4e6126e40a479d72e9d8723bbfcd4ef5bcfe3233 /tests/tacosh.c
parentabfa7f839fabfe6a797057128abff86d598076d9 (diff)
downloadmpfr-6603494a0ea3532c7e23ba0244d0cd0f7fdc9aca.tar.gz
The check_inf test wasn't called. Added 2 missing mpfr_clear and \n.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2530 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tacosh.c')
-rw-r--r--tests/tacosh.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/tacosh.c b/tests/tacosh.c
index 378f30307..37e9ef5ee 100644
--- a/tests/tacosh.c
+++ b/tests/tacosh.c
@@ -43,30 +43,28 @@ void check_inf(void)
mpfr_acosh(x, y, GMP_RNDN);
if (MPFR_IS_INF(x) || MPFR_IS_NAN(x) )
{
- printf("Inf flag not clears in acosh!");
+ printf("Inf flag not clears in acosh!\n");
exit(1);
}
MPFR_SET_NAN(x);
mpfr_acosh(x, y, GMP_RNDN);
if (MPFR_IS_NAN(x) || MPFR_IS_INF(x) )
{
- printf("NAN flag not clears in acosh!");
+ printf("NAN flag not clears in acosh!\n");
exit(1);
}
+ mpfr_clear (x);
+ mpfr_clear (y);
}
-
int
main (int argc, char *argv[])
{
tests_start_mpfr ();
test_generic (2, 100, 25);
+ check_inf ();
tests_end_mpfr ();
return 0;
}
-
-
-
-