From 49048f58205a25e6e1847774c74fb723c3b19513 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sat, 21 Jan 2023 09:42:48 +0100 Subject: [PATCH] fix some tests after renaming method --- src/ui/bigtext/testline.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/bigtext/testline.py b/src/ui/bigtext/testline.py index 6c44065..d76949b 100644 --- a/src/ui/bigtext/testline.py +++ b/src/ui/bigtext/testline.py @@ -2,6 +2,7 @@ import unittest import unicodedata from line import Line + class MyTestCase(unittest.TestCase): def test_column_to_char(self): byte_offset = 123 @@ -82,14 +83,14 @@ class MyTestCase(unittest.TestCase): text = "\ta\tb" # will be rendered as: ....abc where . represents a whitespace column expected = " a b" line = Line(byte_offset=byte_offset, byte_end=byte_offset + len(text.encode("utf8")), line=text) - self.assertEqual(expected, line.line_tabs_replaced()) + self.assertEqual(expected, line.line_prepared_for_display()) def test_line_tabs_replaced_performance(self): byte_offset = 123 text = "a\t" * 10000 expected = "a " * 10000 line = Line(byte_offset=byte_offset, byte_end=byte_offset + len(text.encode("utf8")), line=text) - self.assertEqual(expected, line.line_tabs_replaced()) + self.assertEqual(expected, line.line_prepared_for_display()) def test_byte_index_to_char_index(self): byte_offset = 123