summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2020-03-24 22:56:52 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2020-03-24 22:56:52 +0100
commit342f4a88b8735bf881c977bf13ac7e9b47a05c0d (patch)
tree0f3adfc61ac4cff73c7e30b4465874dc6c432edd /tests
parentf2182af33bd66bb32475e19ced8390924422c1f3 (diff)
downloadgmp-342f4a88b8735bf881c977bf13ac7e9b47a05c0d.tar.gz
tests/mpz/t-nextprime.c: Write values when failing, by Troisi
Diffstat (limited to 'tests')
-rw-r--r--tests/mpz/t-nextprime.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mpz/t-nextprime.c b/tests/mpz/t-nextprime.c
index 58343cec6..bbcb29bae 100644
--- a/tests/mpz/t-nextprime.c
+++ b/tests/mpz/t-nextprime.c
@@ -151,7 +151,10 @@ test_ref(gmp_randstate_ptr rands, int reps) {
mpz_nextprime (next_p, x);
refmpz_nextprime (ref_next_p, x);
if (mpz_cmp (next_p, ref_next_p) != 0)
- abort ();
+ {
+ gmp_printf ("Ref mismatch %Zd => %Zd vs %Zd\n", x, ref_next_p, next_p);
+ abort ();
+ }
}
mpz_clear (bs);