Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Test the optional GAP packages
TESTS::
sage: from sage.tests.gap_packages import all_installed_packages, test_packages sage: pkgs = all_installed_packages(ignore_dot_gap=True) sage: test_packages(pkgs, only_failures=True) # optional - gap_packages Status Package GAP Output +--------+---------+------------+
These are packages in the ``database_gap`` package::
sage: test_packages(['atlasrep', 'tomlib']) # optional - database_gap gap_packages Status Package GAP Output +--------+----------+------------+ atlasrep true tomlib true """
""" Return list of all installed packages.
INPUT:
- ``packages`` -- a list/tuple/iterable of strings. The names of GAP packages to try to import.
- ``only_failures`` -- boolean, default ``False``. Whether to only include failures in the table.
OUTPUT:
A table of the installed packages and whether they load successfully.
EXAMPLES::
sage: from sage.tests.gap_packages import all_installed_packages, test_packages sage: test_packages(['GAPDoc']) Status Package GAP Output +--------+---------+------------+ GAPDoc true
All packages, including user-installed ones::
sage: pkgs = all_installed_packages() sage: test_packages(pkgs) # random output Status Package GAP Output +---------+------------+------------+ Alnuth true GAPDoc true Failure HAPcryst fail Hap true autpgrp true crime true ctbllib true design true factint true grape true guava true laguna true polycyclic true polymaking true sonata true toric true """ continue
""" Return list of all installed packages.
INPUT:
- ``ignore_dot_gap`` -- Boolean (default: ``False``). Whether to ignore the `.gap/` directory (usually in the user home directory) when searching for packages.
OUTPUT:
Tuple of strings in alphabetic order.
EXAMPLES::
sage: from sage.tests.gap_packages import all_installed_packages sage: all_installed_packages() (...'GAPDoc'...) """ continue |