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
  • Loading branch information
benlorenz committed Feb 15, 2022
1 parent 548e5a3 commit 0a4176e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/ToricVarieties/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,14 @@ big_variety2 = NormalToricVariety(P)
set_coefficient_ring(big_variety2, 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

duration2 = @elapsed stanley_reisner_ideal(big_variety2)
@test duration2 < 10
@test ngens(stanley_reisner_ideal(big_variety2)) == 1648
end

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

0 comments on commit 0a4176e

Please sign in to comment.