upTreeTraversal finished, fixed a bug in fixture parser where every node had parent set to 0

unfinished test that checks agains that error
This commit is contained in:
2026-07-20 18:15:50 +02:00
parent e89cec47d9
commit 46f9e05d63
4 changed files with 29 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ export function buildTestFS(tree: FixtureNode): FileSystem {
function parse(node: FixtureNode, parent: number): void {
if (node.type === "Dir") {
for (const child of node.children) {
parse(child, parent);
parse(child, node.inode);
}
const children: Record<string, number> = {};