Skip to content

Commit 432ec9b

Browse files
author
Matthias Koeppe
committed
src/sage/groups/perm_gps: Fix formatting of doctest tags
1 parent 5fe2931 commit 432ec9b

File tree

2 files changed

+26
-23
lines changed

2 files changed

+26
-23
lines changed

src/sage/groups/perm_gps/permgroup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def load_hap():
164164
165165
EXAMPLES::
166166
167-
sage: sage.groups.perm_gps.permgroup.load_hap() # optional - gap_package_hap
167+
sage: sage.groups.perm_gps.permgroup.load_hap() # optional - gap_package_hap
168168
"""
169169
from sage.features.gap import GapPackage
170170
GapPackage("hap", spkg="gap_packages").require()
@@ -179,16 +179,17 @@ def hap_decorator(f):
179179
180180
EXAMPLES::
181181
182+
sage: # optional - gap_package_hap
182183
sage: from sage.groups.perm_gps.permgroup import hap_decorator
183184
sage: def foo(self, n, p=0): print("Done")
184185
sage: foo = hap_decorator(foo)
185-
sage: foo(None, 3) #optional - gap_package_hap
186+
sage: foo(None, 3)
186187
Done
187-
sage: foo(None, 3, 0) # optional - gap_package_hap
188+
sage: foo(None, 3, 0)
188189
Done
189-
sage: foo(None, 3, 5) # optional - gap_package_hap
190+
sage: foo(None, 3, 5)
190191
Done
191-
sage: foo(None, 3, 4) #optional - gap_package_hap
192+
sage: foo(None, 3, 4)
192193
Traceback (most recent call last):
193194
...
194195
ValueError: p must be 0 or prime

src/sage/groups/perm_gps/permgroup_named.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __classcall__(cls, *args, **kwds):
134134
135135
EXAMPLES::
136136
137-
sage: SymmetricGroup(['a','b']).domain() #indirect doctest
137+
sage: SymmetricGroup(['a','b']).domain() # indirect doctest
138138
{'a', 'b'}
139139
"""
140140
domain = kwds.pop('domain', None)
@@ -679,7 +679,7 @@ def __init__(self, domain=None):
679679
Alternating group of order 6!/2 as a permutation group
680680
sage: G.category()
681681
Category of finite enumerated permutation groups
682-
sage: TestSuite(G).run() # long time
682+
sage: TestSuite(G).run() # long time
683683
684684
sage: G = AlternatingGroup([1,2,4,5])
685685
sage: G
@@ -1063,14 +1063,15 @@ def __init__(self, n):
10631063
10641064
EXAMPLES::
10651065
1066-
sage: G = groups.permutation.Janko(1); G # optional - gap_package_atlasrep internet
1066+
sage: G = groups.permutation.Janko(1); G # optional - gap_package_atlasrep internet
10671067
Janko group J1 of order 175560 as a permutation group
10681068
10691069
TESTS::
10701070
1071-
sage: G.category() # optional - gap_package_atlasrep internet
1071+
sage: G.category() # optional - gap_package_atlasrep internet
10721072
Category of finite enumerated permutation groups
1073-
sage: TestSuite(G).run(skip=["_test_enumerated_set_contains", "_test_enumerated_set_iter_list"]) # optional - gap_package_atlasrep internet
1073+
sage: TestSuite(G).run(skip=["_test_enumerated_set_contains", # optional - gap_package_atlasrep internet
1074+
....: "_test_enumerated_set_iter_list"])
10741075
"""
10751076
if n not in [1, 2, 3]:
10761077
raise ValueError("n must belong to {1,2,3}")
@@ -1083,7 +1084,7 @@ def _repr_(self):
10831084
"""
10841085
EXAMPLES::
10851086
1086-
sage: G = groups.permutation.Janko(1); G # optional - gap_package_atlasrep internet
1087+
sage: G = groups.permutation.Janko(1); G # optional - gap_package_atlasrep internet
10871088
Janko group J1 of order 175560 as a permutation group
10881089
"""
10891090
return "Janko group J%s of order %s as a permutation group" % (self._n, self.order())
@@ -1096,14 +1097,15 @@ def __init__(self):
10961097
10971098
EXAMPLES::
10981099
1099-
sage: G = groups.permutation.SuzukiSporadic(); G # optional - gap_package_atlasrep internet
1100+
sage: G = groups.permutation.SuzukiSporadic(); G # optional - gap_package_atlasrep internet
11001101
Sporadic Suzuki group acting on 1782 points
11011102
11021103
TESTS::
11031104
11041105
sage: G.category() # optional - gap_package_atlasrep internet
11051106
Category of finite enumerated permutation groups
1106-
sage: TestSuite(G).run(skip=["_test_enumerated_set_contains", "_test_enumerated_set_iter_list"]) # optional - gap_package_atlasrep internet
1107+
sage: TestSuite(G).run(skip=["_test_enumerated_set_contains", # optional - gap_package_atlasrep internet
1108+
....: "_test_enumerated_set_iter_list"])
11071109
"""
11081110
libgap.load_package("atlasrep")
11091111
PermutationGroup_generic.__init__(self, gap_group='AtlasGroup("Suz")')
@@ -1112,7 +1114,7 @@ def _repr_(self):
11121114
"""
11131115
EXAMPLES::
11141116
1115-
sage: G = groups.permutation.SuzukiSporadic(); G # optional - gap_package_atlasrep internet
1117+
sage: G = groups.permutation.SuzukiSporadic(); G # optional - gap_package_atlasrep internet
11161118
Sporadic Suzuki group acting on 1782 points
11171119
"""
11181120
return "Sporadic Suzuki group acting on 1782 points"
@@ -1987,7 +1989,7 @@ def _repr_(self):
19871989
"""
19881990
TESTS::
19891991
1990-
sage: TransitiveGroups() # indirect doctest
1992+
sage: TransitiveGroups() # indirect doctest
19911993
Transitive Groups
19921994
"""
19931995
return "Transitive Groups"
@@ -2101,7 +2103,7 @@ def __iter__(self):
21012103
"""
21022104
EXAMPLES::
21032105
2104-
sage: list(TransitiveGroups(5)) # indirect doctest
2106+
sage: list(TransitiveGroups(5)) # indirect doctest
21052107
[Transitive group number 1 of degree 5,
21062108
Transitive group number 2 of degree 5,
21072109
Transitive group number 3 of degree 5,
@@ -2375,7 +2377,7 @@ class PrimitiveGroupsAll(DisjointUnionEnumeratedSets):
23752377
23762378
The following test is broken, see :trac:`22576`::
23772379
2378-
sage: TestSuite(PrimitiveGroups()).run() # known bug # long time
2380+
sage: TestSuite(PrimitiveGroups()).run() # known bug, long time
23792381
"""
23802382
def __init__(self):
23812383
"""
@@ -2399,7 +2401,7 @@ def _repr_(self):
23992401
24002402
TESTS::
24012403
2402-
sage: PrimitiveGroups() # indirect doctest
2404+
sage: PrimitiveGroups() # indirect doctest
24032405
Primitive Groups
24042406
"""
24052407
return "Primitive Groups"
@@ -2533,7 +2535,7 @@ def __iter__(self):
25332535
"""
25342536
EXAMPLES::
25352537
2536-
sage: list(PrimitiveGroups(5)) # indirect doctest
2538+
sage: list(PrimitiveGroups(5)) # indirect doctest
25372539
[C(5), D(2*5), AGL(1, 5), A(5), S(5)]
25382540
"""
25392541
for n in range(1, self.cardinality() + 1):
@@ -2650,7 +2652,7 @@ def __init__(self, n, q, name='a'):
26502652
26512653
sage: G.category()
26522654
Category of finite enumerated permutation groups
2653-
sage: TestSuite(G).run() # long time
2655+
sage: TestSuite(G).run() # long time
26542656
26552657
TESTS::
26562658
@@ -2718,7 +2720,7 @@ def __init__(self, n, q, name='a'):
27182720
27192721
sage: G.category()
27202722
Category of finite enumerated permutation groups
2721-
sage: TestSuite(G).run() # long time
2723+
sage: TestSuite(G).run() # long time
27222724
27232725
TESTS::
27242726
@@ -2784,7 +2786,7 @@ def ramification_module_decomposition_hurwitz_curve(self):
27842786
EXAMPLES::
27852787
27862788
sage: G = PSL(2,13)
2787-
sage: G.ramification_module_decomposition_hurwitz_curve() # random, optional - gap_packages
2789+
sage: G.ramification_module_decomposition_hurwitz_curve() # random, optional - gap_packages
27882790
[0, 7, 7, 12, 12, 12, 13, 15, 14]
27892791
27902792
This means, for example, that the trivial representation does not
@@ -2834,7 +2836,7 @@ def ramification_module_decomposition_modular_curve(self):
28342836
EXAMPLES::
28352837
28362838
sage: G = PSL(2,7)
2837-
sage: G.ramification_module_decomposition_modular_curve() # random, optional - gap_packages
2839+
sage: G.ramification_module_decomposition_modular_curve() # random, optional - gap_packages
28382840
[0, 4, 3, 6, 7, 8]
28392841
28402842
This means, for example, that the trivial representation does not

0 commit comments

Comments
 (0)