Skip to content

Commit

Permalink
test/Toric/stanley_reisner_ideal: check runtime and compare with fixe…
Browse files Browse the repository at this point in the history
…d value

with the seed in the input this value should be stable

remove second testcase since the code is deterministic
  • Loading branch information
benlorenz committed Feb 15, 2022
1 parent 548e5a3 commit 4afe23a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/ToricVarieties/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,13 @@ end

P = polarize(Polyhedron(Polymake.polytope.rand_sphere(5,60; seed=42)))
big_variety = NormalToricVariety(P)
big_variety2 = NormalToricVariety(P)
set_coefficient_ring(big_variety2, GF(13))
set_coefficient_ring(big_variety, GF(13))

@testset "Additional test for Stanley-Reisner ideal" begin
@test ngens(stanley_reisner_ideal(big_variety)) == ngens(stanley_reisner_ideal(big_variety2))
# this should run in a few seconds at most
duration = @elapsed stanley_reisner_ideal(big_variety)
@test duration < 10
@test ngens(stanley_reisner_ideal(big_variety)) == 1648
end

D=ToricDivisor(H5, [0,0,0,0])
Expand Down

0 comments on commit 4afe23a

Please sign in to comment.