diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-08-22 07:47:38 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-08-22 07:47:38 +0000 |
commit | df298441131eff8e0498db98f504204fff082483 (patch) | |
tree | 9e886a0de4af99cb4451620f1b27b1d7624924c3 /tests/tadd1sp.c | |
parent | 98a0e162ed9d7637e9efac6ffd5f413c0b05bdb1 (diff) | |
download | mpfr-df298441131eff8e0498db98f504204fff082483.tar.gz |
[tests/mpfr-test.h] added macro TEST_FLAGS (debug use only)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13004 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tadd1sp.c')
-rw-r--r-- | tests/tadd1sp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tadd1sp.c b/tests/tadd1sp.c index f40b7136c..27e7385ee 100644 --- a/tests/tadd1sp.c +++ b/tests/tadd1sp.c @@ -322,7 +322,9 @@ check_random (mpfr_prec_t p) STD_ERROR; if (inexact1 != inexact2) STD_ERROR2; +#if TEST_FLAGS MPFR_ASSERTN (flags1 == flags2); +#endif } } } @@ -384,7 +386,9 @@ check_special (void) mpfr_set_str_binary (c, "0.101111111101110000001100001000011000011011010001010011111100111E-4"); mpfr_clear_inexflag (); mpfr_add1sp (a1, b, c, MPFR_RNDN); +#if TEST_FLAGS MPFR_ASSERTN (mpfr_inexflag_p ()); +#endif mpfr_clears (a1, a2, b, c, (mpfr_ptr) 0); } |