Skip to content

Commit

Permalink
feat(check): allow extra validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Molmin committed Mar 23, 2024
1 parent ff42819 commit 0bb5731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hydrooj-problem-transmission/src/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ interface JudgeConfig {
}

const ALLOW_EXTRA_TESTDATA = [
...['py', 'sh', 'cc', 'cpp', 'js', 'mjs', 'ts'].map((ext: string) => `generator.${ext}`)
...['py', 'sh', 'cc', 'cpp', 'js', 'mjs', 'ts']
.map((ext: string) => ['generator', 'validator', ''].map((name) => `${name}.${ext}`)).flat(),
]

console.log({
Expand Down

0 comments on commit 0bb5731

Please sign in to comment.