Skip to content

Commit

Permalink
Remove unused variable from print
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Moss committed Oct 1, 2024
1 parent fb0d20a commit 775d319
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/fmpq_mpoly/test/t-compose_fmpq_mpoly.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ TEST_FUNCTION_START(fmpq_mpoly_compose_fmpq_mpoly, state)
fmpq_mpoly_set_str_pretty(C + 1, "x1 - x2", NULL, ctxAC);
fmpq_mpoly_set_str_pretty(C + 2, "1", NULL, ctxAC);
if (fmpq_mpoly_compose_fmpq_mpoly(A, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check non-example 1\n", i);
TEST_FUNCTION_FAIL("Check non-example 1\n");

fmpq_mpoly_set_str_pretty(C + 0, "x1", NULL, ctxAC);
fmpq_mpoly_set_str_pretty(C + 1, "2*x2", NULL, ctxAC);
fmpq_mpoly_set_str_pretty(C + 2, "1", NULL, ctxAC);
if (fmpq_mpoly_compose_fmpq_mpoly(A, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check non-example 2\n", i);
TEST_FUNCTION_FAIL("Check non-example 2\n");

fmpq_mpoly_set_str_pretty(C + 0, "2*x1", NULL, ctxAC);
fmpq_mpoly_set_str_pretty(C + 1, "x2", NULL, ctxAC);
fmpq_mpoly_set_str_pretty(C + 2, "1", NULL, ctxAC);
if (!fmpq_mpoly_compose_fmpq_mpoly(A, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check example 3\n", i);
TEST_FUNCTION_FAIL("Check example 3\n");

/* Aliased generator composition */
c = (slong *) flint_malloc(nvarsB*sizeof(slong));
Expand Down
6 changes: 3 additions & 3 deletions src/fmpz_mpoly/test/t-compose_fmpz_mpoly.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@ TEST_FUNCTION_START(fmpz_mpoly_compose_fmpz_mpoly, state)
if (fmpz_mpoly_compose_fmpz_mpoly(A, B, Cp, ctxB, ctxAC) ||
fmpz_mpoly_compose_fmpz_mpoly_horner(A1, B, Cp, ctxB, ctxAC) ||
fmpz_mpoly_compose_fmpz_mpoly_geobucket(A2, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check non-example 1\n", i);
TEST_FUNCTION_FAIL("Check non-example 1\n");

fmpz_mpoly_set_str_pretty(C + 0, "x1", NULL, ctxAC);
fmpz_mpoly_set_str_pretty(C + 1, "2*x2", NULL, ctxAC);
fmpz_mpoly_set_str_pretty(C + 2, "1", NULL, ctxAC);
if (fmpz_mpoly_compose_fmpz_mpoly(A, B, Cp, ctxB, ctxAC) ||
fmpz_mpoly_compose_fmpz_mpoly_horner(A1, B, Cp, ctxB, ctxAC) ||
fmpz_mpoly_compose_fmpz_mpoly_geobucket(A2, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check non-example 2\n", i);
TEST_FUNCTION_FAIL("Check non-example 2\n");

fmpz_mpoly_set_str_pretty(C + 0, "2*x1", NULL, ctxAC);
fmpz_mpoly_set_str_pretty(C + 1, "x2", NULL, ctxAC);
fmpz_mpoly_set_str_pretty(C + 2, "1", NULL, ctxAC);
if (!fmpz_mpoly_compose_fmpz_mpoly(A, B, Cp, ctxB, ctxAC) ||
!fmpz_mpoly_compose_fmpz_mpoly_horner(A1, B, Cp, ctxB, ctxAC) ||
!fmpz_mpoly_compose_fmpz_mpoly_geobucket(A2, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check example 3\n", i);
TEST_FUNCTION_FAIL("Check example 3\n");

/* Aliased generator composition */
c = (slong *) flint_malloc(nvarsB*sizeof(slong));
Expand Down
6 changes: 3 additions & 3 deletions src/nmod_mpoly/test/t-compose_nmod_mpoly.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ TEST_FUNCTION_START(nmod_mpoly_compose_nmod_mpoly, state)
if (nmod_mpoly_compose_nmod_mpoly(A, B, Cp, ctxB, ctxAC) ||
nmod_mpoly_compose_nmod_mpoly_horner(A1, B, Cp, ctxB, ctxAC) ||
nmod_mpoly_compose_nmod_mpoly_geobucket(A2, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check non-example 1\n", i);
TEST_FUNCTION_FAIL("Check non-example 1\n");

nmod_mpoly_set_str_pretty(C + 0, "x1", NULL, ctxAC);
nmod_mpoly_set_str_pretty(C + 1, "2*x2", NULL, ctxAC);
nmod_mpoly_set_str_pretty(C + 2, "1", NULL, ctxAC);
if (!nmod_mpoly_compose_nmod_mpoly(A, B, Cp, ctxB, ctxAC) ||
!nmod_mpoly_compose_nmod_mpoly_horner(A1, B, Cp, ctxB, ctxAC) ||
!nmod_mpoly_compose_nmod_mpoly_geobucket(A2, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check non-example 2\n", i);
TEST_FUNCTION_FAIL("Check non-example 2\n");

nmod_mpoly_set_str_pretty(C + 0, "2*x1", NULL, ctxAC);
nmod_mpoly_set_str_pretty(C + 1, "x2", NULL, ctxAC);
nmod_mpoly_set_str_pretty(C + 2, "1", NULL, ctxAC);
if (!nmod_mpoly_compose_nmod_mpoly(A, B, Cp, ctxB, ctxAC) ||
!nmod_mpoly_compose_nmod_mpoly_horner(A1, B, Cp, ctxB, ctxAC) ||
!nmod_mpoly_compose_nmod_mpoly_geobucket(A2, B, Cp, ctxB, ctxAC))
TEST_FUNCTION_FAIL("Check example 3\n", i);
TEST_FUNCTION_FAIL("Check example 3\n");

/* Aliased generator composition */
c = (slong *) flint_malloc(nvarsB*sizeof(slong));
Expand Down

0 comments on commit 775d319

Please sign in to comment.