File tree Expand file tree Collapse file tree
test/lib/utils/test_cases Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,6 +193,7 @@ const atCoderUniversityPrefixes = getContestPrefixes(ATCODER_UNIVERSITIES);
193193 */
194194const ATCODER_OTHERS : ContestPrefix = {
195195 chokudai_S : 'Chokudai SpeedRun' ,
196+ atc001 : 'AtCoder Typical Contest 001' ,
196197 'code-festival-2014-quala' : 'Code Festival 2014 予選 A' ,
197198 'code-festival-2014-qualb' : 'Code Festival 2014 予選 B' ,
198199 'code-festival-2014-final' : 'Code Festival 2014 決勝' ,
@@ -313,16 +314,18 @@ export function getContestPriority(contestId: string): number {
313314 * - "abc376"
314315 * - "ARC128"
315316 * - "agc045"
317+ * - "atc001"
316318 * - "awc0001"
317319 *
318320 * Example non-matches:
319321 * - "xyz123"
320322 * - "abc12"
321323 * - "abc1234"
324+ * - "atc1234"
322325 * - "awc12345"
323326 */
324- const regexForAxc = / ^ ( a b c | a r c | a g c ) ( \d { 3 } ) / i;
325- const regexForAwc = / ^ ( a w c ) ( \d { 4 } ) / i;
327+ const regexForAxc = / ^ ( a b c | a r c | a g c | a t c ) ( \d { 3 } ) $ / i;
328+ const regexForAwc = / ^ ( a w c ) ( \d { 4 } ) $ / i;
326329
327330/**
328331 * Regular expression to match AtCoder University contest identifiers.
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ export const atCoderOthers = [
3737 contestId : 'chokudai_S002' ,
3838 expected : 'Chokudai SpeedRun 002' ,
3939 } ) ,
40+ createTestCaseForContestNameLabel ( 'AtCoder Typical Contest 001' ) ( {
41+ contestId : 'atc001' ,
42+ expected : 'ATC 001' ,
43+ } ) ,
4044] ;
4145
4246export const mathAndAlgorithm = [
Original file line number Diff line number Diff line change @@ -398,6 +398,10 @@ export const atCoderOthers = [
398398 contestId : 'chokudai_S002' ,
399399 expected : ContestType . OTHERS ,
400400 } ) ,
401+ createTestCaseForContestType ( 'AtCoder Typical Contest 001' ) ( {
402+ contestId : 'atc001' ,
403+ expected : ContestType . OTHERS ,
404+ } ) ,
401405 createTestCaseForContestType ( 'CODE FESTIVAL 2014 qual A' ) ( {
402406 contestId : 'code-festival-2014-quala' ,
403407 expected : ContestType . OTHERS ,
You can’t perform that action at this time.
0 commit comments