summaryrefslogtreecommitdiff
path: root/tests/tai.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-02-19 23:32:38 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-02-19 23:32:38 +0000
commit741fd22bc24ebc3ffe41c393a679023a9367b998 (patch)
tree84c4ce70afce0b01f74bec0eae8fc1a71eba05ef /tests/tai.c
parent6b20e7565eaab3ab2b6ad351987e8dc55c3d5aae (diff)
downloadmpfr-741fd22bc24ebc3ffe41c393a679023a9367b998.tar.gz
[tests/tai.c] Renamed test_near_zero to test_near_m2e, since this is
"exercise mpfr_ai near m*2^e", as documented. Corrected comments. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12326 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tai.c')
-rw-r--r--tests/tai.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/tai.c b/tests/tai.c
index cd09308b4..e9e8d7e58 100644
--- a/tests/tai.c
+++ b/tests/tai.c
@@ -135,7 +135,7 @@ bug20180107 (void)
/* exercise mpfr_ai near m*2^e, for precision p */
static void
-test_near_zero (long m, mpfr_exp_t e, mpfr_prec_t pmax)
+test_near_m2e (long m, mpfr_exp_t e, mpfr_prec_t pmax)
{
mpfr_t x, xx, y, yy;
mpfr_prec_t p;
@@ -206,12 +206,12 @@ main (int argc, char *argv[])
{
tests_start_mpfr ();
- test_near_zero (-5, -1, 100); /* exercise near zero -2.5 */
- test_near_zero (-4, 0, 100); /* exercise near zero -4 */
- test_near_zero (-11, -1, 100); /* exercise near zero -5.5 */
- test_near_zero (-27, -2, 100); /* exercise near zero -6.8 */
- test_near_zero (-31, -2, 100); /* exercise near zero -8 */
- test_near_zero (-15, -1, 100); /* exercise near zero -9 */
+ test_near_m2e (-5, -1, 100); /* exercise near -2.5 */
+ test_near_m2e (-4, 0, 100); /* exercise near -4 */
+ test_near_m2e (-11, -1, 100); /* exercise near -5.5 */
+ test_near_m2e (-27, -2, 100); /* exercise near -6.75 */
+ test_near_m2e (-31, -2, 100); /* exercise near -7.75 */
+ test_near_m2e (-15, -1, 100); /* exercise near -7.5 */
bug20180107 ();
check_large ();
check_zero ();