Skip to content

Commit 01c8f91

Browse files
authored
Merge pull request #2516 from AtCoder-NoviSteps/#2508
✨ Add tasks and tests (#2508)
2 parents 07cf0a2 + 3a7d4ef commit 01c8f91

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

src/lib/utils/contest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ const ATCODER_OTHERS: ContestPrefix = {
179179
'dwacon2017-prelims': '第3回 ドワンゴからの挑戦状 予選',
180180
'mujin-pc-2016': 'Mujin Programming Challenge 2016',
181181
'mujin-pc-2018': 'Mujin Programming Challenge 2018',
182+
'tenka1-2015-quala': '天下一プログラマーコンテスト2015予選A',
182183
'tenka1-2016-final': '天下一プログラマーコンテスト2016本戦',
183184
// Discovery Channel contest featuring algorithm problems
184185
discovery2016: 'DISCO presents ディスカバリーチャンネル プログラミングコンテスト2016',
@@ -196,6 +197,7 @@ export const AOJ_COURSES: ContestPrefix = {
196197
ALDS1: 'アルゴリズムとデータ構造入門',
197198
ITP2: 'プログラミング応用',
198199
DPL: '組み合わせ最適化',
200+
GRL: 'グラフ',
199201
} as const;
200202

201203
export function getPrefixForAojCourses() {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ const AOJ_COURSES_TEST_DATA = {
579579
contestId: 'DPL',
580580
tasks: ['1_A', '1_I', '5_A', '5_L'],
581581
},
582+
GRL: {
583+
contestId: 'GRL',
584+
tasks: ['1_A', '1_C', '6_B', '7_A'],
585+
},
582586
};
583587

584588
const generateAojCoursesTestCases = (

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ export const atCoderOthers = [
371371
contestId: 'mujin-pc-2018',
372372
expected: ContestType.OTHERS,
373373
}),
374+
createTestCaseForContestType('天下一プログラマーコンテスト2015予選A')({
375+
contestId: 'tenka1-2015-quala',
376+
expected: ContestType.OTHERS,
377+
}),
374378
createTestCaseForContestType('天下一プログラマーコンテスト2016本戦')({
375379
contestId: 'tenka1-2016-final',
376380
expected: ContestType.OTHERS,
@@ -416,6 +420,7 @@ const aojCoursesData = [
416420
{ name: 'AOJ Courses, ALDS1', contestId: 'ALDS1' },
417421
{ name: 'AOJ Courses, ITP2', contestId: 'ITP2' },
418422
{ name: 'AOJ Courses, DPL', contestId: 'DPL' },
423+
{ name: 'AOJ Courses, GRL', contestId: 'GRL' },
419424
];
420425

421426
export const aojCourses = aojCoursesData.map(({ name, contestId }) =>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ const courses = [
100100
contestId: 'DPL',
101101
tasks: ['1_A', '1_I', '5_A', '5_L'],
102102
},
103+
{
104+
contestId: 'GRL',
105+
tasks: ['1_A', '1_C', '6_B', '7_A'],
106+
},
103107
];
104108

105109
export const aojCourses = courses.flatMap((course) =>

0 commit comments

Comments
 (0)