We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a47ee commit cb49f95Copy full SHA for cb49f95
src/tasks/submission.ts
@@ -27,8 +27,16 @@ class SubmissionScenario implements Scenario {
27
28
fs.writeFileSync(path.join(currentJobDir, LANG_CONFIG.SOURCE_FILE),
29
(new Buffer(job.source, 'base64')).toString('ascii'))
30
- fs.writeFileSync(path.join(currentJobDir, ),
31
- (new Buffer(job.testcases)))
+ const testCasesDir = path.join(currentJobDir, 'testcases')
+ mkdir('-p', testCasesDir)
32
+
33
+ job.testcases.map(async testcase => {
34
+ const rootDir = path.join(testCasesDir, '' + testcase.id)
35
+ mkdir('-p', rootDir)
36
+ const input = await download(testcase.input, rootDir)
37
+ const output = await download(testcase.output, rootDir)
38
+ })
39
40
}
41
42
async result(currentJobDir: string): Promise<SubmissionResult> {
0 commit comments