Skip to content

Commit b7736a2

Browse files
committed
tests(doctests): For Pane.split w/ helpers
1 parent 07d74a7 commit b7736a2

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/libtmux/pane.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -532,51 +532,51 @@ def split(
532532
>>> new_pane
533533
Pane(%2 Window(@1 1:..., Session($1 ...)))
534534
535-
>>> new_pane.pane_at_right
536-
'1'
535+
>>> new_pane.at_right
536+
True
537537
538-
>>> new_pane.pane_at_left
539-
'1'
538+
>>> new_pane.at_left
539+
True
540540
541-
>>> new_pane.pane_at_top
542-
'0'
541+
>>> new_pane.at_top
542+
False
543543
544-
>>> new_pane.pane_at_bottom
545-
'1'
544+
>>> new_pane.at_bottom
545+
True
546546
547547
>>> right_pane = pane.split(direction=PaneDirection.Right)
548548
549549
>>> right_pane
550550
Pane(%3 Window(@1 1:..., Session($1 ...)))
551551
552-
>>> right_pane.pane_at_right
553-
'1'
552+
>>> right_pane.at_right
553+
True
554554
555-
>>> right_pane.pane_at_left
556-
'0'
555+
>>> right_pane.at_left
556+
False
557557
558-
>>> right_pane.pane_at_top
559-
'1'
558+
>>> right_pane.at_top
559+
True
560560
561-
>>> right_pane.pane_at_bottom
562-
'0'
561+
>>> right_pane.at_bottom
562+
False
563563
564564
>>> left_pane = pane.split(direction=PaneDirection.Left)
565565
566566
>>> left_pane
567567
Pane(%4 Window(@1 1:..., Session($1 ...)))
568568
569-
>>> left_pane.pane_at_right
570-
'0'
569+
>>> left_pane.at_right
570+
False
571571
572-
>>> left_pane.pane_at_left
573-
'1'
572+
>>> left_pane.at_left
573+
True
574574
575-
>>> left_pane.pane_at_top
576-
'1'
575+
>>> left_pane.at_top
576+
True
577577
578-
>>> left_pane.pane_at_bottom
579-
'0'
578+
>>> left_pane.at_bottom
579+
False
580580
"""
581581
tmux_formats = ["#{pane_id}" + FORMAT_SEPARATOR]
582582

0 commit comments

Comments
 (0)