Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 25, 2024
1 parent 34f8fdd commit 97cc392
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/macro.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module TestMacro

using Test
import MutableArithmetics as MA
using SemialgebraicSets
using MultivariatePolynomials

Expand All @@ -14,6 +15,14 @@ function _test_polynomial_API(set, vars)
mono = prod(vars)
@test @inferred(variables(set)) == variables(mono)
@test @inferred(monomial_type(typeof(set))) == monomial_type(typeof(mono))
V = set
if !(V isa AbstractAlgebraicSet)
V = algebraic_set(V)
end
if !(V isa FullSpace)
@test typeof(ideal(V)) == MA.promote_operation(ideal, typeof(V))
end
return
end

function runtests()
Expand Down

0 comments on commit 97cc392

Please sign in to comment.