Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add several "check" methods for running TestInput objects directly #3660

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

d-torrance
Copy link
Member

We add check(TestInput), check(ZZ) (for checking a test from the last call to tests), and check(List) (for running several tests). For example:

i1 : tests "Python"

o1 = {0 => TestInput[../packages/Python.m2:425:5-456:3] }
     {1 => TestInput[../packages/Python.m2:458:5-481:3] }
     {2 => TestInput[../packages/Python.m2:483:5-564:3] }
     {3 => TestInput[../packages/Python.m2:566:5-593:3] }
     {4 => TestInput[../packages/Python.m2:595:5-601:3] }
     {5 => TestInput[../packages/Python.m2:603:5-623:3] }
     {6 => TestInput[../packages/Python.m2:626:5-668:3] }
     {7 => TestInput[../packages/Python.m2:670:5-676:3] }
     {8 => TestInput[../packages/Python.m2:678:5-708:3] }
     {9 => TestInput[../packages/Python.m2:710:5-718:3] }
     {10 => TestInput[../packages/Python.m2:720:5-726:3]}

o1 : NumberedVerticalList

i2 : check oo#5
 -- capturing check(5, "Python")                 -- .0560508s elapsed

i3 : check 7
 -- capturing check(7, "Python")                 -- .0535221s elapsed

i4 : check {o1#2, o1#6, o1#9}
 -- capturing check(2, "Python")                 -- .058056s elapsed
 -- capturing check(6, "Python")                 -- .0539775s elapsed
 -- capturing check(9, "Python")                 -- .0563448s elapsed

Cc: @pzinn

@d-torrance d-torrance requested a review from pzinn February 18, 2025 05:17
We also update the "check" docs to use actual examples instead of
canned examples.  We use FirstPackage tests since it should be
installed prior to Macaulay2Doc.  We also add one more test to
FirstPackage to make these examples slightly more interesting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant