LineBuf.clear()

This commit is contained in:
Kovid Goyal
2016-11-04 15:11:08 +05:30
parent d324baf979
commit e3fdd3089d
2 changed files with 15 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ class TestDataTypes(BaseTest):
new = LineBuf(1, 3)
new.copy_old(old)
self.ae(new.line(0), old.line(1))
new.clear()
self.ae(str(new.line(0)), ' ' * new.xnum)
def test_line(self):
lb = LineBuf(2, 3)