-
Notifications
You must be signed in to change notification settings - Fork 215
improve coverage #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve coverage #268
Conversation
bn_mp_prime_rabin_miller_trials.c
Outdated
| } | ||
| } | ||
| return sizes[x-1].t + 1; | ||
| return sizes[x-1].t; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this is the inconsistency? I cannot judge this since I never looked into those prime tests. Ping @czurnieden?
|
@sjaeckel Maybe split this PR in two if there is an issue with the prime tests, which needs more work? |
b9f8f9c to
3b2a48f
Compare
3b2a48f to
7cdaaa3
Compare
|
split into two PR's as they're independent |
|
That test (under EDIT II: |
czurnieden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed that the test-case for balanced multiplication wasn't hit anymore (or probably never? :-D ).
I checked it with one of my (in)famous puts("DDD"); and it got hit, yes.
But it is better that way, of course.
I tried to explain it? |
|
@czurnieden Sorry, I didn't read your explanation first because I thought you commented here instead of in #269. I thought @sjaeckel moved all the "critical" stuff to #269. |
I think I slowly grasp github's UI/UX but you're right, of course, to be still sceptical ;-) But now that I have you: do you think it is enough to just delete the first test (could be done in this PR) or get rid of the second part, too (needs more work, including change of documentation, hence its own PR)? |
Hmm, I am not sure I really got you. Do you want to get rid of this ltm_primetab division test and replace it with your sieve? Then the specific ltm_primetab tests can go to (what you wrote under Edit II). |
7cdaaa3 to
8b2cbea
Compare
Then let me assure you: you didn't—it seems as if I was not able to explain it with words. |
Thanks! That's better. I'll add a comment in #272. |
8b2cbea to
cb3ff8c
Compare
I've noticed that the test-case for balanced multiplication wasn't hit anymore (or probably never? :-D ).
While looking at the coverage results I added some trivial ones
and I think I found an inconsistency... nothing bad but it still stood out while looking at the code...mp_prime_rabin_miller_trials:38 leads to 2 MR trials for numbers > 4096 bits@czurnieden is that change fine that not only 4096bit sized numbers only have to do 1 MR but also numbers >4096bits?moved to #269