mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
...
This commit is contained in:
@@ -166,7 +166,7 @@ def create_narrow_symbols(opts: Options) -> tuple[tuple[int, int, int], ...]:
|
||||
descriptor_overrides: dict[int, tuple[str, bool, bool]] = {}
|
||||
|
||||
|
||||
def descriptor_for_idx(idx: int) -> tuple[Union[FontObject | str], bool, bool]:
|
||||
def descriptor_for_idx(idx: int) -> tuple[Union[FontObject, str], bool, bool]:
|
||||
ans = descriptor_overrides.get(idx)
|
||||
if ans is None:
|
||||
return current_faces[idx]
|
||||
|
||||
@@ -235,7 +235,12 @@ def block_helpers(s, sprites, cell_width, cell_height):
|
||||
return ans
|
||||
|
||||
def block_test(*expected, **kw):
|
||||
for i, (expected, actual) in enumerate(zip(expected, multiline_render(kw.pop('text', '█'), **kw), strict=True)):
|
||||
mr = multiline_render(kw.pop('text', '█'), **kw)
|
||||
try:
|
||||
z = zip(expected, mr, strict=True)
|
||||
except TypeError:
|
||||
z = zip(expected, mr)
|
||||
for i, (expected, actual) in enumerate(z):
|
||||
assert_blocks(expected(), actual, f'Block {i} is not equal')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user