Skip to content

Commit 9fefcce

Browse files
committed
Follow-up from Trac #21325 review comment 19: shift_left+right: test equality
1 parent b4f83e4 commit 9fefcce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ def shift_left(self, b=1, **kwds):
559559
560560
TESTS:
561561
562-
sage: C.shift_left(0) == C # not tested, #21319
562+
sage: C.shift_left(0) == C
563+
True
563564
sage: C.shift_left(2).shift_right(2)
564565
2-regular sequence 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, ...
565566
"""
@@ -604,11 +605,14 @@ def shift_right(self, b=1, **kwds):
604605
605606
TESTS:
606607
607-
sage: C.shift_right(0) == C # not tested, #21319
608+
sage: C.shift_right(0) == C
609+
True
608610
sage: C.shift_right().shift_left()
609611
2-regular sequence 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
610612
sage: C.shift_right(2).shift_left(2)
611613
2-regular sequence 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ...
614+
sage: _ == C
615+
True
612616
"""
613617
return self.subsequence(1, -b, **kwds)
614618

0 commit comments

Comments
 (0)