test: follow canonical directory root artifacts

This commit is contained in:
2026-08-13 00:59:59 +09:00
parent 22ee8f5ae6
commit 853090174b
3 changed files with 34 additions and 34 deletions

View File

@@ -100,11 +100,11 @@ fn samefile(a: str, b: str, why: str) void = {
let wantroot: str = strings.concat("//ww:module-reset main\n", appsrc,
"\n");
if (!testenv.same(wantroot, testenv.readfile(strings.concat(cwork,
"__root.unit.ww")))) {
"main.unit.ww")))) {
fail("root unit is not exactly its owned source");
};
let keys: []str = ["example.base", "example.bar", "example.foo",
"__root"];
"main"];
let suffixes: []str = [".unit.ww", ".wwi", ".a"];
i = 0;
for (i < keys.len) {