Add tests for combining at screen edge

This commit is contained in:
Kovid Goyal
2025-04-03 13:12:20 +05:30
parent 4c2bd8ffb1
commit 2cad589f1c

View File

@@ -71,6 +71,16 @@ class TestScreen(BaseTest):
self.ae(s.cursor.x, 5), self.ae(s.cursor.y, 2)
s.draw('c' * 15)
self.ae(str(s.line(0)), 'ニチ')
s.reset()
qt = 'a' * s.columns + '\u0306'
s.draw(qt)
self.ae(str(s.line(0)), qt)
s.reset()
s.draw(qt[:-1]), s.draw(qt[-1])
self.ae(str(s.line(0)), qt)
s.reset()
s.draw(qt[:-1]), s.linefeed(), s.carriage_return(), s.draw(qt[-1])
self.ae(str(s.line(0)), qt[:-1])
# Now test without line-wrap
s.reset(), s.reset_dirty()