Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 28, 2024
1 parent 1a69467 commit fe9dd32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/certificate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,15 @@ function certificate_api(certificate::Certificate.AbstractIdealCertificate)
@polyvar x
poly = x + 1
domain = @set x == 1
basis = MB.SubBasis{MB.Monomial}(MP.monomials(poly))
@test Certificate.reduced_polynomial(
certificate,
MP.coefficients(poly),
MB.SubBasis{MB.Monomial}(MP.monomials(poly)),
basis,
domain,
) isa Tuple
_basis_check(
Certificate.gram_basis(certificate, poly),
Certificate.gram_basis(certificate, basis),
Certificate.gram_basis_type(typeof(certificate), MP.monomial_type(x)),
)
zbasis = Certificate.zero_basis(certificate)
Expand Down

0 comments on commit fe9dd32

Please sign in to comment.