Fix truncation of border titles.

- Ellipses weren't always standing in for truncations.
This commit is contained in:
Andrew Hamilton 2019-09-01 14:42:37 +10:00
parent a0892616bf
commit 71f8461bc3
2 changed files with 10 additions and 6 deletions

View file

@ -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)