@@ -172,29 +172,22 @@ describe('Contest', () => {
172172 { contestId : 'code-festival-2017-quala' , expected : ContestType . AGC_LIKE } ,
173173 { contestId : 'code-festival-2017-qualb' , expected : ContestType . AGC_LIKE } ,
174174 { contestId : 'code-festival-2017-qualc' , expected : ContestType . AGC_LIKE } ,
175+ { contestId : 'cf17-final' , expected : ContestType . AGC_LIKE } ,
175176 ] ;
176177
177178 runTests ( 'classifyContest' , testCases , ( { contestId, expected } : TestCaseForContestType ) => {
178179 expect ( classifyContest ( contestId ) ) . toEqual ( expected ) ;
179180 } ) ;
180181 } ) ;
181182
182- describe ( 'when contest_id contains chokudai_S ' , ( ) => {
183+ describe ( 'when contest_id means others ' , ( ) => {
183184 const testCases = [
184185 { contestId : 'chokudai_S001' , expected : ContestType . OTHERS } ,
185186 { contestId : 'chokudai_S002' , expected : ContestType . OTHERS } ,
186- ] ;
187-
188- runTests ( 'classifyContest' , testCases , ( { contestId, expected } : TestCaseForContestType ) => {
189- expect ( classifyContest ( contestId ) ) . toEqual ( expected ) ;
190- } ) ;
191- } ) ;
192-
193- describe ( 'when contest_id contains code-festival-2014-final, donuts, colopl and gigacode' , ( ) => {
194- const testCases = [
195187 { contestId : 'code-festival-2014-final' , expected : ContestType . OTHERS } ,
196188 { contestId : 'donuts-live2014' , expected : ContestType . OTHERS } ,
197189 { contestId : 'donuts-2015' , expected : ContestType . OTHERS } ,
190+ { contestId : 'mujin-pc-2016' , expected : ContestType . OTHERS } ,
198191 { contestId : 'colopl2018-qual' , expected : ContestType . OTHERS } ,
199192 { contestId : 'colopl2018-final' , expected : ContestType . OTHERS } ,
200193 { contestId : 'gigacode-2019' , expected : ContestType . OTHERS } ,
@@ -395,26 +388,14 @@ describe('Contest', () => {
395388 ) ;
396389 } ) ;
397390
398- describe ( 'when contest_id contains chokudai_S ' , ( ) => {
391+ describe ( 'when contest_id means others ' , ( ) => {
399392 const testCases = [
400393 { contestId : 'chokudai_S001' , expected : ContestType . OTHERS } ,
401394 { contestId : 'chokudai_S002' , expected : ContestType . OTHERS } ,
402- ] ;
403-
404- runTests (
405- 'getContestPriority' ,
406- testCases ,
407- ( { contestId, expected } : TestCaseForContestType ) => {
408- expect ( getContestPriority ( contestId ) ) . toEqual ( contestTypePriorities . get ( expected ) ) ;
409- } ,
410- ) ;
411- } ) ;
412-
413- describe ( 'when contest_id contains code-festival-2014-final, donuts, colopl and gigacode' , ( ) => {
414- const testCases = [
415395 { contestId : 'code-festival-2014-final' , expected : ContestType . OTHERS } ,
416396 { contestId : 'donuts-live2014' , expected : ContestType . OTHERS } ,
417397 { contestId : 'donuts-2015' , expected : ContestType . OTHERS } ,
398+ { contestId : 'mujin-pc-2016' , expected : ContestType . OTHERS } ,
418399 { contestId : 'colopl2018-qual' , expected : ContestType . OTHERS } ,
419400 { contestId : 'colopl2018-final' , expected : ContestType . OTHERS } ,
420401 { contestId : 'gigacode-2019' , expected : ContestType . OTHERS } ,
0 commit comments