Fix truncation of border titles.
- Ellipses weren't always standing in for truncations.
This commit is contained in:
parent
a0892616bf
commit
71f8461bc3
2 changed files with 10 additions and 6 deletions
|
|
@ -64,6 +64,10 @@ class WidgetTests(unittest.TestCase):
|
|||
"┌─ AB ─┐\n"
|
||||
"│abcdef│\n"
|
||||
"└──────┘")
|
||||
self.assert_string(fill3.Border(text, title="ABC").appearance((6, 3)),
|
||||
"┌ …C ┐\n"
|
||||
"│abcd│\n"
|
||||
"└────┘")
|
||||
|
||||
def test_placeholder_widget(self):
|
||||
placeholder = fill3.Placeholder(self.TEXT_A)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue