summaryrefslogtreecommitdiff
path: root/tests/tsgn.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-18 16:35:19 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-18 16:35:19 +0000
commitbab5aab404897a12fe1c87734ebf2aa270b9b73b (patch)
tree73ab96f558e7e0b4ef371902ead983189184a0f7 /tests/tsgn.c
parent8328a51518450ad8ddb86e38e7952e28065ff22a (diff)
downloadmpfr-bab5aab404897a12fe1c87734ebf2aa270b9b73b.tar.gz
Converted tabs to spaces with expand.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3725 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsgn.c')
-rw-r--r--tests/tsgn.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/tsgn.c b/tests/tsgn.c
index 30d2298da..353442f18 100644
--- a/tests/tsgn.c
+++ b/tests/tsgn.c
@@ -68,34 +68,34 @@ check_sgn(void)
{
mpfr_random(x);
if (i&1)
- {
- MPFR_SET_POS(x);
- s2 = 1;
- }
+ {
+ MPFR_SET_POS(x);
+ s2 = 1;
+ }
else
- {
- MPFR_SET_NEG(x);
- s2 = -1;
- }
+ {
+ MPFR_SET_NEG(x);
+ s2 = -1;
+ }
s1 = mpfr_sgn(x);
if (s1 < -1 || s1 > 1)
- {
- printf("Error for sgn: out of range.\n");
- goto lexit;
- }
+ {
+ printf("Error for sgn: out of range.\n");
+ goto lexit;
+ }
else if (MPFR_IS_NAN(x) || MPFR_IS_ZERO(x))
- {
- if (s1 != 0)
- {
- printf("Error for sgn: Nan or Zero should return 0.\n");
- goto lexit;
- }
- }
+ {
+ if (s1 != 0)
+ {
+ printf("Error for sgn: Nan or Zero should return 0.\n");
+ goto lexit;
+ }
+ }
else if (s1 != s2)
- {
- printf("Error for sgn. Return %d instead of %d.\n", s1, s2);
- goto lexit;
- }
+ {
+ printf("Error for sgn. Return %d instead of %d.\n", s1, s2);
+ goto lexit;
+ }
}
mpfr_clear(x);
return;