judge: fix testlib copyIn

This commit is contained in:
undefined committed 2025-02-14 21:44:55 +08:00
1 parent 0ababf34d0
commit 44581e8b16
1 file changed
+1 -1
+1 -1
View File
@@ -201,7 +201,7 @@ export class JudgeTask {
...Object.fromEntries( ...Object.fromEntries(
(extra || []).map((i) => [basename(i), { src: i }]), (extra || []).map((i) => [basename(i), { src: i }]),
), ),
...(withTestlib ? { testlib: testlibFile } : {}), ...(withTestlib ? { 'testlib.h': testlibFile } : {}),
} as CopyIn; } as CopyIn;
let [file, langId] = typeof source === 'string' ? [source, 'auto'] : [source.file, source.lang]; let [file, langId] = typeof source === 'string' ? [source, 'auto'] : [source.file, source.lang];
if (!file.startsWith('/')) file = join(this.folder, file); if (!file.startsWith('/')) file = join(this.folder, file);