summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-11-22 16:29:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-11-22 16:29:01 +0000
commit2197a5f1514df628b1f8950dafd548014073416b (patch)
treed305b9f54262a02e3ebe98c56b75f9cd3bad2dbd /tests
parentc813c87b5dbccbc0a5b3425c62b9c0f8bc90b4f1 (diff)
downloadmpfr-2197a5f1514df628b1f8950dafd548014073416b.tar.gz
[tests/tstrtofr.c] Added comments, including a FIXME.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13287 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests')
-rw-r--r--tests/tstrtofr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tstrtofr.c b/tests/tstrtofr.c
index 570395b1b..2bf7a239e 100644
--- a/tests/tstrtofr.c
+++ b/tests/tstrtofr.c
@@ -1392,6 +1392,11 @@ random_tests (void)
}
MPFR_ASSERTN (s0[j] != 0);
+ /* We will increment the next digit. Thus while s0[j] is the
+ maximum digit, go back until this is no longer the case
+ (the first digit after the common prefix cannot be the
+ maximum digit, so that we will stop early enough). */
+ /* FIXME: If we go back to this digit, noteq needs to reset to 0. */
while ((d = s0[j]) == num_to_text[base - 1])
j--;
s2[j+2] = d = d == '9' ? 'A' : d == 'Z' ? 'a' : d + 1;