assert len(insert_args) in (1, 2, 3, 5), (idx_str, insert_args)
if len(insert_args) == 1 and insert_args[0].startswith(_TOK_FILE):
+ if insert_args[0] in inserted_files:
+ return []
+ inserted_files.add(insert_args[0])
return lines_t_from_file(PATH_TESTS.joinpath(insert_args[0]),
f'{idx_str}{_TOK_FILE}{_SEP_2}')
candidates = [
return [(c[0], c[1]) for c in candidates]
self._lines_t = lines_t_from_file(path)
+ inserted_files: set[str] = set()
while True:
fragments: dict[str, tuple[tuple[str, str], ...]] = {}
anchor = ''