Skip to content

Commit 7e416a9

Browse files
committed
fix doctests in permutation_group.py
1 parent 1310d8a commit 7e416a9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/sage/groups/perm_gps/permgroup.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,13 @@ def gap(self):
681681
sage: UPG = PG.subgroup([p1, p2, p3, p4, p5], canonicalize=False)
682682
sage: UPG.gap()
683683
<permutation group with 5 generators>
684+
685+
the caching of _libgap_() works::
686+
687+
sage: S = SymmetricGroup(4)
688+
sage: g1 = S._libgap_()
689+
sage: g1.IsIdenticalObj(S._libgap_())
690+
true
684691
"""
685692
if self._libgap is not None:
686693
return self._libgap
@@ -1822,8 +1829,8 @@ def stabilizer(self, point, action="OnPoints"):
18221829
sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4,10)]])
18231830
sage: G.stabilizer(10)
18241831
Subgroup generated by [(2,3,4), (1,2)(3,4)] of (Permutation Group with generators [(1,2)(3,4), (1,2,3,4,10)])
1825-
sage: G.stabilizer(1)
1826-
Subgroup generated by [(2,3)(4,10), (2,10,3)] of (Permutation Group with generators [(1,2)(3,4), (1,2,3,4,10)])
1832+
sage: G.stabilizer(1) == G.subgroup(['(2,3)(4,10)', '(2,10,3)'])
1833+
True
18271834
sage: G = PermutationGroup([[(2,3,4)],[(6,7)]])
18281835
sage: G.stabilizer(1)
18291836
Subgroup generated by [(6,7), (2,3,4)] of (Permutation Group with generators [(6,7), (2,3,4)])
@@ -1984,7 +1991,9 @@ def strong_generating_system(self, base_of_group=None, implementation="sage"):
19841991
sage: G = PermutationGroup([[(1,2,3,4)],[(1,2)]])
19851992
sage: G.strong_generating_system()
19861993
[[(), (1,2)(3,4), (1,3)(2,4), (1,4)(2,3)],
1987-
[(), (2,4), (2,3,4)], [(), (3,4)], [()]]
1994+
[(), (2,4,3), (2,3,4)],
1995+
[(), (3,4)],
1996+
[()]]
19881997
sage: G = PermutationGroup([[(1,2,3)],[(4,5,7)],[(1,4,6)]])
19891998
sage: G.strong_generating_system()
19901999
[[(), (1,2,3), (1,4,6), (1,3,2), (1,5,7,4,6), (1,6,4), (1,7,5,4,6)],

0 commit comments

Comments
 (0)