Skip to content

Commit ec5d9c5

Browse files
cubercslvmcj
authored andcommitted
team didn't solve anything shouldn't get any medals
It is a rare situation that medals cannot be distributed completely. It is almost impossible for medals to be awarded to a team didn't solve anything in a real contest. However, this is indeed the case in the test data. Signed-off-by: cubercsl <2014cais01@gmail.com>
1 parent 1a7c94e commit ec5d9c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

webapp/tests/Unit/Controller/Jury/ImportExportControllerTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ public function testResultsHtmlExport(bool $individuallyRanked, bool $honors, st
177177
'export_results[format]' => $format,
178178
]);
179179
self::assertSelectorExists('h1:contains("Results for Demo contest")');
180-
self::assertSelectorExists('th:contains("Example teamname")');
181180
self::assertSelectorExists('th:contains("A: Hello World")');
181+
self::assertSelectorExists('td:contains("Example teamname")');
182182
}
183183

184184
public function provideResultsHtmlExport(): Generator
@@ -219,16 +219,16 @@ public function testResultsTsvExport(
219219
public function provideResultsTsvExport(): Generator
220220
{
221221
yield [0, true, true, 'results 1
222-
exteam 1 Gold Medal 0 0 0 Participants
222+
exteam Honorable 0 0 0
223223
'];
224224
yield [0, true, false, 'results 1
225-
exteam 1 Gold Medal 0 0 0 Participants
225+
exteam Honorable 0 0 0
226226
'];
227227
yield [0, false, true, 'results 1
228-
exteam 1 Gold Medal 0 0 0 Participants
228+
exteam Honorable 0 0 0
229229
'];
230230
yield [0, false, true, 'results 1
231-
exteam 1 Gold Medal 0 0 0 Participants
231+
exteam Honorable 0 0 0
232232
'];
233233
yield [1, true, true, 'results 1
234234
'];

0 commit comments

Comments
 (0)