Skip to content

Commit 7328410

Browse files
Updated the test case
1 parent 9ced783 commit 7328410

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/combinat/permutation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7095,11 +7095,11 @@ def _element_constructor_(self, x, check=True):
70957095
70967096
Ensure that :issue:`37284` is fixed::
70977097
7098-
sage: S5 = SymmetricGroup(5)
7098+
sage: PG = PermutationGroup(SymmetricGroup(5).gens())
70997099
sage: P5 = Permutations(5)
7100-
sage: p = S5.list()[3]
7101-
sage: P5(p)
7102-
[4, 5, 1, 2, 3]
7100+
sage: p = PG.list()[0]
7101+
sage: s = P5(p); s
7102+
[1, 2, 3, 4, 5]
71037103
"""
71047104
if isinstance(x, PermutationGroupElement):
71057105
return self. _from_permutation_group_element(x)

0 commit comments

Comments
 (0)