Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 18, 2022
1 parent d9d95fb commit 819e4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Rings/orderings-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@test collect(monomials(f, :wdeglex, w)) == [ x*y, z^3 ]
@test collect(monomials(f, :wdegrevlex, w)) == [ x*y, z^3 ]
@test collect(monomials(f, :negwdeglex, w)) == [ x*y, z^3 ]
@test collect(monomials(f, :negwdegrevlex, w)) == [ x*y, z^3 ]
@test collect(monomials(f, :negwdegrevlex, w)) == [ z^3, x*y ]

M = [ 1 1 1; 1 0 0; 0 1 0 ]
@test collect(monomials(f, M)) == collect(monomials(f, :deglex))
Expand All @@ -45,7 +45,7 @@ end
@test collect(exponent_vectors(f, :deglex)) == [ [ 0, 0, 3 ], [ 1, 1, 0 ] ]
@test collect(coefficients(f, :deglex)) == [ QQ(5), QQ(1) ]

Fp = FiniteField(7)
Fp = GF(7)
R, (x, y, z) = PolynomialRing(Fp, 3, ordering = :deglex)
f = x*y + 5*z^3
@test collect(monomials(f, :lex)) == [ x*y, z^3 ]
Expand Down

0 comments on commit 819e4bf

Please sign in to comment.