Kill the surviving endless-wait mutants

This commit is contained in:
2026-11-18 19:51:18 +01:00
parent 281220a69b
commit 85e69a9760
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -45,12 +45,12 @@ def loops(simples: list[Simple]) -> list[list[Simple]]:
open_loops: list[list[Simple]] = []
closed = []
for simple in (Simple(core(simple.words), simple.directory) for simple in simples):
first = simple.words[0] if simple.words else ""
first = simple.words[:1]
for loop in open_loops:
loop.append(simple)
if first in LOOPS:
if first and first[0] in LOOPS:
open_loops.append([simple])
elif first == "done" and open_loops:
elif first == ["done"] and open_loops:
closed.append(open_loops.pop())
return closed + open_loops