File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ const uppercaseLatin = `Chris de Almeida (CDA)\nRob Palmer (ç«„)\nUjjwal Sharma
77const twoLetter = `Chris de Almeida (CDA)\nRob Palmer (RP)\nUjjwal Sharma (USA)` ;
88const threeLetter = `Chris de Almeida (CDA)\nRob Palmer (ROBPALMER)\nUjjwal Sharma (USA)` ;
99const duplicate = `Chris de Almeida (CDA)\nRob Palmer (RPR)\nUjjwal Sharma (USA)\nUjjwal Sharma (USA)` ;
10- const valid = `Chris de Almeida (CDA)\nRob Palmer (RPR)\nUjjwal Sharma (USA)` ;
10+ const valid = `Chris de Almeida (CDA)\nMichael Ficarra (MF)\ nRob Palmer (RPR)\nUjjwal Sharma (USA)` ;
1111
12- assert . throws ( ( ) => checkDelegates ( lex ) , { message : / N o t i n l e x i c o g r a p h i c o r d e r / } ) ;
12+ assert . throws ( ( ) => checkDelegates ( lex ) , { message : 'Line 3: Not in lexicographic order.' } ) ; // also validates expected line number
1313assert . 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 / } ) ;
1414assert . 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 / } ) ;
1515assert . 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 / } ) ;
You can’t perform that action at this time.
0 commit comments