mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
judge: fix interactive(testlib)
This commit is contained in:
1 parent
7c6e97fdfc
commit
a5f8f02d8e
2 files changed
+2
-2
No files matched your search
@@ -101,7 +101,7 @@ export const judge = async (ctx) => {
|
||||
return await compile(ctx.getLang(ctx.lang), ctx.code, 'code', copyIn, ctx.next);
|
||||
})(),
|
||||
(async () => {
|
||||
const copyIn = { 'testlib.h': testlibSrc };
|
||||
const copyIn = { 'testlib.h': { src: testlibSrc } };
|
||||
for (const file of ctx.config.judge_extra_files) {
|
||||
copyIn[parseFilename(file)] = { src: file };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user