mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 11:11:47 +02:00
...
This commit is contained in:
@@ -618,10 +618,13 @@ def test_multicell(self: TestMulticell) -> None:
|
|||||||
for i, (e, a) in enumerate(zip(as_lists(bytes(expected)), as_lists(actual))):
|
for i, (e, a) in enumerate(zip(as_lists(bytes(expected)), as_lists(actual))):
|
||||||
self.ae(e, a, f'Row: {i}')
|
self.ae(e, a, f'Row: {i}')
|
||||||
|
|
||||||
def ast(*expected, as_ansi=False, strip_trailing_whitespace=False):
|
def ast(*expected, strip_trailing_whitespace=False, as_ansi=False):
|
||||||
actual = s.text_for_selection(as_ansi, strip_trailing_whitespace)
|
actual = s.text_for_selection(as_ansi, strip_trailing_whitespace)
|
||||||
self.ae(expected, actual)
|
self.ae(expected, actual)
|
||||||
|
|
||||||
|
def asa(*expected, strip_trailing_whitespace=False):
|
||||||
|
ast(*expected, as_ansi=True, strip_trailing_whitespace=strip_trailing_whitespace)
|
||||||
|
|
||||||
s.reset()
|
s.reset()
|
||||||
s.draw('a'), multicell(s, 'b', width=2), s.draw('c')
|
s.draw('a'), multicell(s, 'b', width=2), s.draw('c')
|
||||||
ss(p(), p(x=1, in_left_half_of_cell=False))
|
ss(p(), p(x=1, in_left_half_of_cell=False))
|
||||||
|
|||||||
Reference in New Issue
Block a user