Start work on C implementation of the core data types

This commit is contained in:
Kovid Goyal
2016-10-31 22:09:34 +05:30
parent 43032e96f6
commit 1f55af6691
5 changed files with 209 additions and 7 deletions

View File

@@ -8,10 +8,17 @@ from . import BaseTest
from kitty.data_types import Line, Cursor
from kitty.utils import is_simple_string, wcwidth, sanitize_title
from kitty.fast_data_types import LineBuf
class TestDataTypes(BaseTest):
def text_line_buf(self):
lb = LineBuf(2, 3)
for y in range(2):
for x in range(3):
self.ae(lb.text_at(y, x), ' ')
def test_line_ops(self):
t = 'Testing with simple text'
l = Line(len(t))