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:
@@ -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> = {};
|
||||
|
||||
Reference in New Issue
Block a user