Skip to content

Commit 097879c

Browse files
committed
rename testcase to input and output
1 parent cb49f95 commit 097879c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/tasks/submission.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ class SubmissionScenario implements Scenario {
3030
const testCasesDir = path.join(currentJobDir, 'testcases')
3131
mkdir('-p', testCasesDir)
3232

33-
job.testcases.map(async testcase => {
33+
return Promise.all(job.testcases.map(async testcase => {
3434
const rootDir = path.join(testCasesDir, '' + testcase.id)
3535
mkdir('-p', rootDir)
36-
const input = await download(testcase.input, rootDir)
37-
const output = await download(testcase.output, rootDir)
38-
})
39-
36+
const input = await download(testcase.input, path.join(rootDir, 'stdin'))
37+
const output = await download(testcase.output, path.join(rootDir, 'stdout'))
38+
}))
4039
}
4140

4241
async result(currentJobDir: string): Promise<SubmissionResult> {

0 commit comments

Comments
 (0)