mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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(
|
...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);
|
||||||
|
|||||||
Reference in new issue
Block a user