Skip to content

Commit 6a7fa15

Browse files
test: use is_groebner_basis for tests, mark basis equality tests as broken
1 parent b246863 commit 6a7fa15

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/extensions/groebner.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@ truebasis = [
5151
x5^5 - 1
5252
]
5353
basis = expand.(groebner_basis(system))
54-
@test isequal(basis, truebasis)
54+
# monomial order can change, returning different but still valid bases
55+
@test_broken isequal(basis, truebasis)
56+
@test Symbolics.is_groebner_basis(basis)
5557

5658
basis = expand.(groebner_basis(system, linalg=:deterministic))
57-
@test isequal(basis, truebasis)
59+
@test_broken isequal(basis, truebasis)
60+
@test Symbolics.is_groebner_basis(basis)
5861

5962
N = 45671930739135174346839766056203605080877915151
6063
system = [
@@ -70,7 +73,8 @@ truebasis = [
7073
x4^4 - N
7174
]
7275
basis = groebner_basis(system)
73-
@test isequal(expand.(basis), truebasis)
76+
@test_broken isequal(expand.(basis), truebasis)
77+
@test Symbolics.is_groebner_basis(basis)
7478

7579
# issues/1323
7680
@variables t S(t) R(t)

0 commit comments

Comments
 (0)