]> Savannah Git Hosting - gnulib.git/commitdiff
More tests for modules frexpf-ieee, frexp-ieee, frexpl-ieee.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Feb 2012 15:02:40 +0000 (16:02 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Feb 2012 15:02:40 +0000 (16:02 +0100)
tests/test-frexp-ieee.c
tests/test-frexpf-ieee.c
tests/test-frexpl-ieee.c

index 8a3897e948fa4e96dc9e863735ee4923838bc920..258d1dd66b90cb2f05cc49e2579bbd1332dd1fb3 100644 (file)
@@ -62,6 +62,12 @@ main ()
     mantissa = frexp (Infinityd (), &exp);
     ASSERT (mantissa == Infinityd ());
   }
+  {
+    int exp = -9999;
+    double mantissa;
+    mantissa = frexp (- Infinityd (), &exp);
+    ASSERT (mantissa == - Infinityd ());
+  }
 
   return 0;
 }
index d8e3f730ace06b73c4a2ebc0fbc973eda211b415..ea32ea9c22834eb544e3802aa3653eb7bef90654 100644 (file)
@@ -62,6 +62,12 @@ main ()
     mantissa = frexpf (Infinityf (), &exp);
     ASSERT (mantissa == Infinityf ());
   }
+  {
+    int exp = -9999;
+    float mantissa;
+    mantissa = frexpf (- Infinityf (), &exp);
+    ASSERT (mantissa == - Infinityf ());
+  }
 
   return 0;
 }
index ebe72c77f1e893da3c459231e6ad34a7718b0423..c9fae568a983b50f0309ed0f663e1c50d1c6d975 100644 (file)
@@ -62,6 +62,12 @@ main ()
     mantissa = frexpl (Infinityl (), &exp);
     ASSERT (mantissa == Infinityl ());
   }
+  {
+    int exp = -9999;
+    long double mantissa;
+    mantissa = frexpl (- Infinityl (), &exp);
+    ASSERT (mantissa == - Infinityl ());
+  }
 
   return 0;
 }