@@ -9,11 +9,11 @@ const threeLetter = `Chris de Almeida (CDA)\nRob Palmer (ROBPALMER)\nUjjwal Shar
99const duplicate = `Chris de Almeida (CDA)\nRob Palmer (RPR)\nUjjwal Sharma (USA)\nUjjwal Sharma (USA)` ;
1010const valid = `Chris de Almeida (CDA)\nMichael Ficarra (MF)\nRob Palmer (RPR)\nUjjwal Sharma (USA)` ;
1111
12- assert . throws ( ( ) => checkDelegates ( lex ) , { message : 'Line 3: Not in lexicographic order.' } ) ; // also validates expected line number
13- assert . throws ( ( ) => checkDelegates ( missing ) , { message : / M i s s i n g a b b r e v i a t i o n f o r / } ) ;
14- assert . throws ( ( ) => checkDelegates ( uppercaseLatin ) , { message : / A b b r e v i a t i o n s m u s t b e a l l u p p e r c a s e L a t i n l e t t e r s / } ) ;
15- assert . throws ( ( ) => checkDelegates ( twoLetter ) , { message : / n o t i n a l l o w l i s t . N e w d e l e g a t e a b b r e v i a t i o n s m u s t b e t h r e e l e t t e r s / } ) ;
16- assert . throws ( ( ) => checkDelegates ( threeLetter ) , { message : / N e w d e l e g a t e a b b r e v i a t i o n s m u s t b e t h r e e l e t t e r s / } ) ;
17- assert . throws ( ( ) => checkDelegates ( duplicate ) , { message : / C o n f l i c t i n g u s a g e o n l i n e / } ) ;
12+ assert . throws ( ( ) => checkDelegates ( lex ) , { message : 'Line 3: Not in lexicographic order.' } ) ; // also validates expected line number
13+ assert . throws ( ( ) => checkDelegates ( missing ) , { message : / M i s s i n g a b b r e v i a t i o n f o r / } ) ;
14+ assert . throws ( ( ) => checkDelegates ( uppercaseLatin ) , { message : / A b b r e v i a t i o n s m u s t b e a l l u p p e r c a s e L a t i n l e t t e r s / } ) ;
15+ assert . throws ( ( ) => checkDelegates ( twoLetter ) , { message : / n o t i n a l l o w l i s t . N e w d e l e g a t e a b b r e v i a t i o n s m u s t b e t h r e e l e t t e r s / } ) ;
16+ assert . throws ( ( ) => checkDelegates ( threeLetter ) , { message : / N e w d e l e g a t e a b b r e v i a t i o n s m u s t b e t h r e e l e t t e r s / } ) ;
17+ assert . throws ( ( ) => checkDelegates ( duplicate ) , { message : / C o n f l i c t i n g u s a g e o n l i n e / } ) ;
1818
1919assert . doesNotThrow ( ( ) => checkDelegates ( valid ) ) ;
0 commit comments