repr for Line

This commit is contained in:
Kovid Goyal
2016-11-01 18:43:55 +05:30
parent f3944e6289
commit c069d40ffe
2 changed files with 25 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ class TestDataTypes(BaseTest):
lb = LineBuf(2, 3)
for y in range(2):
line = lb.line(y)
self.ae(str(line), ' '*3)
for x in range(3):
self.ae(line.text_at(x), ' ')
with self.assertRaises(ValueError):