Skip to content

Commit 3a7d4ef

Browse files
committed
✨ Add tasks and tests (#2508)
1 parent b14c4f4 commit 3a7d4ef

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

src/lib/utils/contest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export const AOJ_COURSES: ContestPrefix = {
197197
ALDS1: 'アルゴリズムとデータ構造入門',
198198
ITP2: 'プログラミング応用',
199199
DPL: '組み合わせ最適化',
200+
GRL: 'グラフ',
200201
} as const;
201202

202203
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ const aojCoursesData = [
420420
{ name: 'AOJ Courses, ALDS1', contestId: 'ALDS1' },
421421
{ name: 'AOJ Courses, ITP2', contestId: 'ITP2' },
422422
{ name: 'AOJ Courses, DPL', contestId: 'DPL' },
423+
{ name: 'AOJ Courses, GRL', contestId: 'GRL' },
423424
];
424425

425426
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)