mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
judge: fix testlib copyIn
This commit is contained in:
1 file changed
+1
-1
@@ -201,7 +201,7 @@ export class JudgeTask {
|
||||
...Object.fromEntries(
|
||||
(extra || []).map((i) => [basename(i), { src: i }]),
|
||||
),
|
||||
...(withTestlib ? { testlib: testlibFile } : {}),
|
||||
...(withTestlib ? { 'testlib.h': testlibFile } : {}),
|
||||
} as CopyIn;
|
||||
let [file, langId] = typeof source === 'string' ? [source, 'auto'] : [source.file, source.lang];
|
||||
if (!file.startsWith('/')) file = join(this.folder, file);
|
||||
|
||||
Reference in new issue
Block a user