Skip to content

Commit

Permalink
test the weight matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
tthsqe12 committed Jun 28, 2022
1 parent 40ccbba commit 302bfbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Rings/orderings-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ end
@test negdeglex([x, y, z]) == negwdeglex([x, y, z], [1, 1, 1])
@test negdegrevlex([x, y, z]) == negwdegrevlex([x, y, z], [1, 1, 1])
@test neglex([z])*neglex([y])*neglex([x]) == negrevlex([x, y, z])

m = matrix(ZZ, [-1 -1 -1; 1 0 0; 0 1 0; 0 0 1])
@test negdeglex(gens(R)) == matrix_ordering(gens(R), m)

m = matrix(ZZ, [-2 -3 -4; 1 0 0; 0 1 0; 0 0 1])
@test negwdeglex(gens(R), [2, 3, 4]) == matrix_ordering(gens(R), m)
end

@testset "Polynomial Orderings sorting" begin
Expand All @@ -110,7 +116,6 @@ end
o = negrevlex([x1, x2])*wdegrevlex([x3, x4], [1, 2])
@test collect(monomials(f, o)) == M

# currently fails
M = [one(R), x3, x3^2, x4, x3^3, x3*x4, x3^2*x4, x4^2, x3*x4^2,
x4^3, x2, x2*x3, x2*x3^2, x2*x4, x2*x3*x4, x2*x4^2, x2^2, x2^2*x3,
x2^2*x4, x2^3, x1, x1*x3, x1*x3^2, x1*x4, x1*x3*x4, x1*x4^2, x1*x2,
Expand Down

0 comments on commit 302bfbd

Please sign in to comment.