Skip to content

Commit

Permalink
Warn when additional test cases have been added.
Browse files Browse the repository at this point in the history
We already had a warning when testcases have been re-ordered or removed,
but didn't catch the case where additional cases have been added to the
end.

Fixes #2765.
  • Loading branch information
meisterT committed Nov 2, 2024
1 parent fb67ba7 commit b6ec59f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapp/src/Controller/Jury/SubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ public function viewAction(
->getScalarResult();

$cnt = 0;
if (count($judgingRunTestcaseIdsInOrder) !== count($runResults)) {
$sameTestcaseIds = false;
}
foreach ($runResults as $runResult) {
/** @var Testcase $testcase */
$testcase = $runResult[0];
Expand Down

0 comments on commit b6ec59f

Please sign in to comment.