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