X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sqrt.h;h=9cb7424e2fbec1911248194d4cbf951709bbf3ef;hb=a363f4ed4a0e69187c97686ac44502c49c7f4b3d;hp=2521734bbf23c27dd3ee3b6848cddfb35ca1c5f4;hpb=c23958ef38d060fa38c7b7c769089c366c0155e3;p=gnulib.git diff --git a/tests/test-sqrt.h b/tests/test-sqrt.h index 2521734bb..9cb7424e2 100644 --- a/tests/test-sqrt.h +++ b/tests/test-sqrt.h @@ -1,5 +1,5 @@ /* Test of sqrt*() function family. - Copyright (C) 2012 Free Software Foundation, Inc. + Copyright (C) 2012-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -34,10 +34,10 @@ test_function (void) { DOUBLE x = L_(16.0) * RANDOM[i]; /* 0.0 <= x <= 16.0 */ DOUBLE y = SQRT (x); - DOUBLE z = y * y - x; + DOUBLE err = y * y - x; ASSERT (y >= L_(0.0)); - ASSERT (z > - L_(16.0) / TWO_MANT_DIG - && z < L_(16.0) / TWO_MANT_DIG); + ASSERT (err > - L_(16.0) / TWO_MANT_DIG + && err < L_(16.0) / TWO_MANT_DIG); } for (i = 0; i < SIZEOF (RANDOM) / 4; i++)