Skip to content

Commit f8d9d70

Browse files
Improve the quality of test case
1 parent 7328410 commit f8d9d70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sage/combinat/permutation.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7097,9 +7097,10 @@ def _element_constructor_(self, x, check=True):
70977097
70987098
sage: PG = PermutationGroup(SymmetricGroup(5).gens())
70997099
sage: P5 = Permutations(5)
7100-
sage: p = PG.list()[0]
7101-
sage: s = P5(p); s
7102-
[1, 2, 3, 4, 5]
7100+
sage: p = PG.an_element()
7101+
sage: x = PG([4,3,5,1,2])
7102+
sage: s = P5(x); s
7103+
[4, 3, 5, 1, 2]
71037104
"""
71047105
if isinstance(x, PermutationGroupElement):
71057106
return self. _from_permutation_group_element(x)

0 commit comments

Comments
 (0)