Cleanup mpz_out_str in tests
Niels Möller
nisse at lysator.liu.se
Sat Mar 28 14:00:45 UTC 2020
Seth Troisi <braintwo at gmail.com> writes:
> The tests are weirdly fragmented in how they print mpz, and I was trying to
> make them more uniform.
> "Why" today was that I had a little time today and long ago Neils had given
> this idea a soft yes.
I think it makes sense to use gmp_printf in tests, whereever that makes
the code more concise and easier to read.
That makes it a bit harder to copy tests between gmp and mini-gmp, but I
think that's something we can live with. (If it gets too inconvenient,
I'd even consider adding a gmp_printf limited to things useful in tests
to mini-gmp/testsuite/).
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
More information about the gmp-devel
mailing list