@@ -123,15 +123,23 @@ describe('Contest', () => {
123123 } ) ;
124124 } ) ;
125125
126- describe ( 'when contest_id mean arc-like' , ( ) => {
126+ describe ( 'when contest_id means abc-like' , ( ) => {
127+ TestCasesForContestType . abcLike . forEach ( ( { name, value } ) => {
128+ runTests ( `${ name } ` , [ value ] , ( { contestId, expected } : TestCaseForContestType ) => {
129+ expect ( classifyContest ( contestId ) ) . toEqual ( expected ) ;
130+ } ) ;
131+ } ) ;
132+ } ) ;
133+
134+ describe ( 'when contest_id means arc-like' , ( ) => {
127135 TestCasesForContestType . arcLike . forEach ( ( { name, value } ) => {
128136 runTests ( `${ name } ` , [ value ] , ( { contestId, expected } : TestCaseForContestType ) => {
129137 expect ( classifyContest ( contestId ) ) . toEqual ( expected ) ;
130138 } ) ;
131139 } ) ;
132140 } ) ;
133141
134- describe ( 'when contest_id mean agc-like' , ( ) => {
142+ describe ( 'when contest_id means agc-like' , ( ) => {
135143 TestCasesForContestType . agcLike . forEach ( ( { name, value } ) => {
136144 runTests ( `${ name } ` , [ value ] , ( { contestId, expected } : TestCaseForContestType ) => {
137145 expect ( classifyContest ( contestId ) ) . toEqual ( expected ) ;
@@ -289,6 +297,14 @@ describe('Contest', () => {
289297 } ) ;
290298 } ) ;
291299
300+ describe ( 'when contest_id means abc-like' , ( ) => {
301+ TestCasesForContestType . abcLike . forEach ( ( { name, value } ) => {
302+ runTests ( `${ name } ` , [ value ] , ( { contestId, expected } : TestCaseForContestType ) => {
303+ expect ( getContestPriority ( contestId ) ) . toEqual ( contestTypePriorities . get ( expected ) ) ;
304+ } ) ;
305+ } ) ;
306+ } ) ;
307+
292308 describe ( 'when contest_id means arc-like' , ( ) => {
293309 TestCasesForContestType . arcLike . forEach ( ( { name, value } ) => {
294310 runTests ( `${ name } ` , [ value ] , ( { contestId, expected } : TestCaseForContestType ) => {
0 commit comments