Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/lib/utils/contest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const arcLikePrefixes = new Set(getContestPrefixes(ARC_LIKE));
const AGC_LIKE: ContestPrefix = {
'code-festival-2016-qual': 'CODE FESTIVAL 2016 qual',
'code-festival-2017-qual': 'CODE FESTIVAL 2017 qual',
'cf16-final': 'CODE FESTIVAL 2016 final',
'cf17-final': 'CODE FESTIVAL 2017 final',
} as const;
const agcLikePrefixes = getContestPrefixes(AGC_LIKE);
Expand Down Expand Up @@ -225,6 +226,7 @@ const ATCODER_OTHERS: ContestPrefix = {
'code-thanks-festival': 'CODE THANKS FESTIVAL',
donuts: 'Donutsプロコンチャレンジ',
indeednow: 'Indeedなう',
'dwango2016-prelims': '第2回 ドワンゴからの挑戦状 予選',
'dwacon2017-prelims': '第3回 ドワンゴからの挑戦状 予選',
'mujin-pc-2016': 'Mujin Programming Challenge 2016',
'mujin-pc-2018': 'Mujin Programming Challenge 2018',
Expand Down
4 changes: 4 additions & 0 deletions src/test/lib/utils/test_cases/contest_name_labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export const atCoderOthers = [
contestId: 's8pc-4',
expected: 'square869120Contest #4',
}),
createTestCaseForContestNameLabel('第2回 ドワンゴからの挑戦状 予選')({
contestId: 'dwango2016-prelims',
expected: '第2回 ドワンゴからの挑戦状 予選',
}),
];

export const mathAndAlgorithm = [
Expand Down
8 changes: 8 additions & 0 deletions src/test/lib/utils/test_cases/contest_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ export const agcLike = [
contestId: 'code-festival-2017-qualc',
expected: ContestType.AGC_LIKE,
}),
createTestCaseForContestType('CODE FESTIVAL 2016 final')({
contestId: 'cf16-final',
expected: ContestType.AGC_LIKE,
}),
createTestCaseForContestType('CODE FESTIVAL 2017 final')({
contestId: 'cf17-final',
expected: ContestType.AGC_LIKE,
Expand Down Expand Up @@ -476,6 +480,10 @@ export const atCoderOthers = [
contestId: 'indeednow-qualb',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('第2回 ドワンゴからの挑戦状 予選')({
contestId: 'dwango2016-prelims',
expected: ContestType.OTHERS,
}),
createTestCaseForContestType('第3回 ドワンゴからの挑戦状 予選')({
contestId: 'dwacon2017-prelims',
expected: ContestType.OTHERS,
Expand Down
Loading