@@ -158,6 +158,7 @@ describe('Contest', () => {
158158 expect ( classifyContest ( contestId ) ) . toEqual ( expected ) ;
159159 } ) ;
160160 } ) ;
161+
161162 describe ( 'when contest_id contains chokudai_S' , ( ) => {
162163 const testCases = [
163164 { contestId : 'chokudai_S001' , expected : ContestType . OTHERS } ,
@@ -169,6 +170,19 @@ describe('Contest', () => {
169170 } ) ;
170171 } ) ;
171172
173+ describe ( 'when contest_id contains donuts or colopl' , ( ) => {
174+ const testCases = [
175+ { contestId : 'donuts-live2014' , expected : ContestType . OTHERS } ,
176+ { contestId : 'donuts-2015' , expected : ContestType . OTHERS } ,
177+ { contestId : 'colopl2018-qual' , expected : ContestType . OTHERS } ,
178+ { contestId : 'colopl2018-final' , expected : ContestType . OTHERS } ,
179+ ] ;
180+
181+ runTests ( 'classifyContest' , testCases , ( { contestId, expected } : TestCaseForContestType ) => {
182+ expect ( classifyContest ( contestId ) ) . toEqual ( expected ) ;
183+ } ) ;
184+ } ) ;
185+
172186 function runTests (
173187 testName : string ,
174188 testCases : TestCasesForContestType ,
@@ -346,6 +360,23 @@ describe('Contest', () => {
346360 ) ;
347361 } ) ;
348362
363+ describe ( 'when contest_id contains donuts or colopl' , ( ) => {
364+ const testCases = [
365+ { contestId : 'donuts-live2014' , expected : ContestType . OTHERS } ,
366+ { contestId : 'donuts-2015' , expected : ContestType . OTHERS } ,
367+ { contestId : 'colopl2018-qual' , expected : ContestType . OTHERS } ,
368+ { contestId : 'colopl2018-final' , expected : ContestType . OTHERS } ,
369+ ] ;
370+
371+ runTests (
372+ 'getContestPriority' ,
373+ testCases ,
374+ ( { contestId, expected } : TestCaseForContestType ) => {
375+ expect ( getContestPriority ( contestId ) ) . toEqual ( contestTypePriorities . get ( expected ) ) ;
376+ } ,
377+ ) ;
378+ } ) ;
379+
349380 function runTests (
350381 testName : string ,
351382 testCases : TestCasesForContestType ,
0 commit comments