Skip to content

Commit 18e9e4b

Browse files
committed
adding doctests
1 parent 3a0475f commit 18e9e4b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/sage/combinat/colored_permutations.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"""
99
import itertools
1010

11-
from collections.abc import Iterable
1211
from sage.structure.element import MultiplicativeGroupElement
1312
from sage.structure.parent import Parent
1413
from sage.structure.unique_representation import UniqueRepresentation
@@ -992,6 +991,18 @@ def __classcall_private__(cls, pi):
992991
sage: SignedPermutation([2, 1, -3])
993992
[2, 1, -3]
994993
994+
sage: SignedPermutation((2,1,-3))
995+
[2, 1, -3]
996+
997+
sage: SignedPermutation(range(1,4))
998+
[1, 2, 3]
999+
1000+
TESTS::
1001+
1002+
sage: T = SignedPermutation(range(1,4)); type(T)
1003+
<class 'sage.combinat.colored_permutations.SignedPermutations_with_category.element_class'>
1004+
sage: SignedPermutation(T)
1005+
[1, 2, 3]
9951006
"""
9961007
return SignedPermutations(len(list(pi)))(pi)
9971008

0 commit comments

Comments
 (0)