Skip to content

Commit f9bb25e

Browse files
KATO-Hiroclaude
andcommitted
feat(contest): add cf16-final and dwango2016-prelims contest mappings
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7915be4 commit f9bb25e

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/lib/utils/contest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ const arcLikePrefixes = new Set(getContestPrefixes(ARC_LIKE));
156156
const AGC_LIKE: ContestPrefix = {
157157
'code-festival-2016-qual': 'CODE FESTIVAL 2016 qual',
158158
'code-festival-2017-qual': 'CODE FESTIVAL 2017 qual',
159+
'cf16-final': 'CODE FESTIVAL 2016 final',
159160
'cf17-final': 'CODE FESTIVAL 2017 final',
160161
} as const;
161162
const agcLikePrefixes = getContestPrefixes(AGC_LIKE);
@@ -225,6 +226,7 @@ const ATCODER_OTHERS: ContestPrefix = {
225226
'code-thanks-festival': 'CODE THANKS FESTIVAL',
226227
donuts: 'Donutsプロコンチャレンジ',
227228
indeednow: 'Indeedなう',
229+
'dwango2016-prelims': '第2回 ドワンゴからの挑戦状 予選',
228230
'dwacon2017-prelims': '第3回 ドワンゴからの挑戦状 予選',
229231
'mujin-pc-2016': 'Mujin Programming Challenge 2016',
230232
'mujin-pc-2018': 'Mujin Programming Challenge 2018',

src/test/lib/utils/test_cases/contest_name_labels.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export const atCoderOthers = [
5656
contestId: 's8pc-4',
5757
expected: 'square869120Contest #4',
5858
}),
59+
createTestCaseForContestNameLabel('第2回 ドワンゴからの挑戦状 予選')({
60+
contestId: 'dwango2016-prelims',
61+
expected: '第2回 ドワンゴからの挑戦状 予選',
62+
}),
5963
];
6064

6165
export const mathAndAlgorithm = [

src/test/lib/utils/test_cases/contest_type.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ export const agcLike = [
340340
contestId: 'code-festival-2017-qualc',
341341
expected: ContestType.AGC_LIKE,
342342
}),
343+
createTestCaseForContestType('CODE FESTIVAL 2016 final')({
344+
contestId: 'cf16-final',
345+
expected: ContestType.AGC_LIKE,
346+
}),
343347
createTestCaseForContestType('CODE FESTIVAL 2017 final')({
344348
contestId: 'cf17-final',
345349
expected: ContestType.AGC_LIKE,
@@ -476,6 +480,10 @@ export const atCoderOthers = [
476480
contestId: 'indeednow-qualb',
477481
expected: ContestType.OTHERS,
478482
}),
483+
createTestCaseForContestType('第2回 ドワンゴからの挑戦状 予選')({
484+
contestId: 'dwango2016-prelims',
485+
expected: ContestType.OTHERS,
486+
}),
479487
createTestCaseForContestType('第3回 ドワンゴからの挑戦状 予選')({
480488
contestId: 'dwacon2017-prelims',
481489
expected: ContestType.OTHERS,

0 commit comments

Comments
 (0)