Skip to content

Commit

Permalink
fix(problem): fix error validating judge info when testcases set to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed Feb 2, 2021
1 parent af563d3 commit 6048e21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/problem-type/common/meta-and-subtasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ export function validateMetaAndSubtasks(

if (
options.testcaseLimit != null &&
judgeInfo.subtasks &&
judgeInfo.subtasks.reduce((count, subtask) => count + subtask.testcases.length, 0) > options.testcaseLimit
)
throw ["TOO_MANY_TESTCASES"];
Expand Down

0 comments on commit 6048e21

Please sign in to comment.