diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2019-12-20 21:55:06 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2019-12-20 21:55:06 +0100 |
commit | c967393f31b0f912043dd89261e655a470b1ce31 (patch) | |
tree | e5a5ac962e7762a07a018749e70753c710b8856d | |
parent | 97affc35544a518971d2dc5bc4b60b648e98b9dc (diff) | |
download | gmp-c967393f31b0f912043dd89261e655a470b1ce31.tar.gz |
tests/mpf/t-conv.c: Test also the base=0 case.
-rw-r--r-- | tests/mpf/t-conv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/mpf/t-conv.c b/tests/mpf/t-conv.c index c86bbccb1..a64e86fdd 100644 --- a/tests/mpf/t-conv.c +++ b/tests/mpf/t-conv.c @@ -190,14 +190,15 @@ main (int argc, char **argv) { /* exercise the special case in get_str for for x==0 */ mpf_set_ui (x, 0L); - base = 10; + base = 0; } else { size = urandom () % (2 * SIZE) - SIZE; exp = urandom () % EXPO; mpf_random2 (x, size, exp); - base = urandom () % 61 + 2; + base = urandom () % 62; + base += base > 0; } str = mpf_get_str (0, &bexp, base, 0, x); |