Test StdPairs packageΒΆ
To be certain on functioning of the implemented methods and attributes of the package, one can test all examples in the documens directly using the command below.
sage -t -l -p $SAGE_ROOT/local/lib/python3.9/site-packages/stdpairs/
where $SAGE_ROOT
is the folder your sage was compiled or installed. Make sure that testing monomialideal.py
file takes 2~3 minutes, unlike others. If one wants to test for more serious examples, we provide two test examples as below.
Test overall executes all methods and attributes of the package and compares their return with pre-defined true computational result. It took almost 15 minutes depending on your machine.
Test indifference between Macaulay2 and StdPairs executes
MonomialIdeal.standard_cover()
method over a (randomly selected) monomial ideal over a polynomial ring and compares its return with the same calculation from Macaulay2.
To test your installed package, please download above testing files, and type
sage -t -l -p test_overall.sage
on the folder having tests files downloaded. For example, the command above gives you a message as below.
too few successful tests, not using stored timings
Running doctests with ID 2021-07-03-21-35-49-328bc55e.
Git branch: develop
Using --optional=4ti2,build,dochtml,e_antic,homebrew,libnauty,normaliz,pip,pynormaliz,sage,sage_spkg
Doctesting 1 file using 4 threads.
This is test suits for stdpairs.
running AffineMonoid and its methods . . . pass
running txt_to_affinemonoid() . . . pass
sage -t --long --random-seed=0 GitHub/StdPairs/tests/test_overall.sage
running txt_to_monomialideal() . . . pass
running MonomialIdeal and its methods . . .pass
running prime_ideal() . . . pass
running ProperPair class and its methods . . . pass
running div_pairs() . . . pass
running macaulay2() . . . pass
running from_macaulay2() . . . pass
running to_macaulay2() . . . pass
StdPair package test was done! Everything works well.
[0 tests, 0.00 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: 855.3 seconds
cpu time: 0.0 seconds
cumulative wall time: 0.0 seconds