Skip to content

Commit 3fd6db8

Browse files
committed
Added Doctests
1 parent 89e7828 commit 3fd6db8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sage/groups/perm_gps/permgroup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3304,6 +3304,12 @@ def commutator(self, other=None):
33043304
Traceback (most recent call last):
33053305
...
33063306
TypeError: junk is not a permutation group
3307+
TESTS ::
3308+
3309+
Verify that :issue`39416` is fixed::
3310+
sage: G = PermutationGroup(gens=[("a", "b"), ("b","c")])
3311+
sage: G.commutator()
3312+
Subgroup generated by [('a','b','c')] of (Permutation Group with generators [('b','c'), ('a','b')])
33073313
"""
33083314
if other is None:
33093315
return self.subgroup(gap_group=libgap.DerivedSubgroup(self))

0 commit comments

Comments
 (0)