summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-02-27 13:35:30 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-02-27 13:35:30 +0000
commitd23bdf8b7b55f188db19f4df2e286078bbca73ee (patch)
tree633278a1dfe369566ddc6bea41cedca94710ea69
parente5638dc21e852be3db92ea4fd2f28ae74ba88fdc (diff)
downloadmpfr-d23bdf8b7b55f188db19f4df2e286078bbca73ee.tar.gz
[tests/tsin.c] Cleanup of the latest test (note: mpfr_equal_p is better
than mpfr_cmp as it makes the test fail on a NaN result). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13727 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tsin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tsin.c b/tests/tsin.c
index 46c7d50ca..56c80efb3 100644
--- a/tests/tsin.c
+++ b/tests/tsin.c
@@ -276,7 +276,7 @@ static void
check_binary128 (void)
{
mpfr_t x, y, z;
-
+
mpfr_init2 (x, 128);
mpfr_init2 (y, 128);
mpfr_init2 (z, 128);
@@ -284,8 +284,8 @@ check_binary128 (void)
211178687508491476026207099112361930892 * 2^13323 */
mpfr_set_str (x, "4.f6fc494bb0d32499bd1688d3f24d846p13448", 16, MPFR_RNDN);
mpfr_cos (y, x, MPFR_RNDN);
- mpfr_set_str (z, "-0xe.f90c5593d35be5801d20ae62edc96f5p-144", 16, MPFR_RNDN);
- if (mpfr_cmp (y, z) != 0)
+ mpfr_set_str (z, "-e.f90c5593d35be5801d20ae62edc96f5p-144", 16, MPFR_RNDN);
+ if (! mpfr_equal_p (y, z))
{
printf ("Error in check128\n");
printf ("expected "); mpfr_dump (z);