summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mini-gmp/tests/t-str.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mini-gmp/tests/t-str.c b/mini-gmp/tests/t-str.c
index 2aa67d01d..d4dce1e80 100644
--- a/mini-gmp/tests/t-str.c
+++ b/mini-gmp/tests/t-str.c
@@ -156,6 +156,18 @@ testmain (int argc, char **argv)
fprintf (stderr,
"Failed to create temporary file. Skipping mpz_out_str tests.\n");
+ if (mpz_out_str (tmp, 63, a) != 0)
+ {
+ printf ("mpz_out_str did not return 0 (error) with base > 62\n");
+ abort ();
+ }
+
+ if (mpz_out_str (tmp, -37, a) != 0)
+ {
+ printf ("mpz_out_str did not return 0 (error) with base < -37\n");
+ abort ();
+ }
+
for (i = 0; i < COUNT; i++)
{
int base;