Skip to content

Commit

Permalink
further test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrik-johansson committed May 27, 2024
1 parent 26bebeb commit a6f6fb8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/nfloat/test/t-nfloat.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ TEST_FUNCTION_START(nfloat, state)

nfloat_ctx_init(ctx, FLINT_BITS, 0);

for (iter = 0; iter < 1000 * flint_test_multiplier(); iter++)
for (iter = 0; iter < 10000 * flint_test_multiplier(); iter++)
{
ulong x[3];
ulong r[NFLOAT_MAX_ALLOC];
Expand All @@ -757,9 +757,9 @@ TEST_FUNCTION_START(nfloat, state)
slong exp;
int sgn;

x[0] = n_randtest(state);
x[1] = n_randtest(state);
x[2] = n_randtest(state);
x[0] = n_randint(state, 2) ? 0 : n_randtest(state);
x[1] = n_randint(state, 2) ? 0 : n_randtest(state);
x[2] = n_randint(state, 2) ? 0 : n_randtest(state);
exp = (slong) n_randint(state, 100) - 100;
sgn = n_randint(state, 2);

Expand All @@ -780,7 +780,7 @@ TEST_FUNCTION_START(nfloat, state)

nfloat_ctx_init(ctx, 2 * FLINT_BITS, 0);

for (iter = 0; iter < 1000 * flint_test_multiplier(); iter++)
for (iter = 0; iter < 10000 * flint_test_multiplier(); iter++)
{
ulong x[4];
ulong r[NFLOAT_MAX_ALLOC];
Expand All @@ -789,10 +789,10 @@ TEST_FUNCTION_START(nfloat, state)
slong exp;
int sgn;

x[0] = n_randtest(state);
x[1] = n_randtest(state);
x[2] = n_randtest(state);
x[3] = n_randtest(state);
x[0] = n_randint(state, 2) ? 0 : n_randtest(state);
x[1] = n_randint(state, 2) ? 0 : n_randtest(state);
x[2] = n_randint(state, 2) ? 0 : n_randtest(state);
x[3] = n_randint(state, 2) ? 0 : n_randtest(state);
exp = (slong) n_randint(state, 100) - 100;
sgn = n_randint(state, 2);

Expand Down

0 comments on commit a6f6fb8

Please sign in to comment.