Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
user202729 committed Aug 30, 2024
1 parent 72b9559 commit 30ea842
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sage/groups/perm_gps/permgroup_named.py
Original file line number Diff line number Diff line change
Expand Up @@ -2722,6 +2722,17 @@ def __init__(self, n, q, name='a'):
Traceback (most recent call last):
...
ValueError: q must be a prime power or a finite field
Coverage test. Note that generator name of ``q`` is used if ``q`` is a field::
sage: PSL(2,GF(2^2,'a'),name='b')
Permutation Group with generators [(3,4,5), (1,2,3)]
sage: _.base_ring()
Finite Field in a of size 2^2
sage: PSL(2,2^2,name='b')
Permutation Group with generators [(3,4,5), (1,2,3)]
sage: _.base_ring()
Finite Field in b of size 2^2
"""
from sage.categories.finite_fields import FiniteFields
if q in FiniteFields():
Expand Down

0 comments on commit 30ea842

Please sign in to comment.