Skip to content

Commit

Permalink
Run more iterations of run_field_misc
Browse files Browse the repository at this point in the history
At count=64, this makes the test take around 1% of the total time.
  • Loading branch information
sipa authored and peterdettman committed Jan 31, 2022
1 parent 9cc5c25 commit 2cbb4b1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -2478,9 +2478,13 @@ void run_field_misc(void) {
secp256k1_fe q;
secp256k1_fe fe5 = SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 5);
int i, j;
for (i = 0; i < 5*count; i++) {
for (i = 0; i < 1000 * count; i++) {
secp256k1_fe_storage xs, ys, zs;
random_fe(&x);
if (i & 1) {
random_fe(&x);
} else {
random_fe_test(&x);
}
random_fe_non_zero(&y);
/* Test the fe equality and comparison operations. */
CHECK(secp256k1_fe_cmp_var(&x, &x) == 0);
Expand Down

0 comments on commit 2cbb4b1

Please sign in to comment.