mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
add test for extend_cell_length
This commit is contained in:
@@ -83,6 +83,14 @@ def test_adjust_cell_length():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def test_extend_cell_length():
|
||||||
|
strip = Strip([Segment("foo"), Segment("bar")])
|
||||||
|
assert strip.extend_cell_length(3).text == "foobar"
|
||||||
|
assert strip.extend_cell_length(6).text == "foobar"
|
||||||
|
assert strip.extend_cell_length(7).text == "foobar "
|
||||||
|
assert strip.extend_cell_length(9).text == "foobar "
|
||||||
|
|
||||||
|
|
||||||
def test_simplify():
|
def test_simplify():
|
||||||
assert Strip([Segment("foo"), Segment("bar")]).simplify() == Strip(
|
assert Strip([Segment("foo"), Segment("bar")]).simplify() == Strip(
|
||||||
[Segment("foobar")]
|
[Segment("foobar")]
|
||||||
|
|||||||
Reference in New Issue
Block a user