File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -536,7 +536,8 @@ fn test_hash_function_missing_argument() {
536536 let error = result. err ( ) . unwrap ( ) ;
537537 let error_msg = error. to_string ( ) ;
538538 assert ! (
539- error_msg. contains( "md5 requires a 'string' argument" ) ,
539+ error_msg. contains( "missing keyword argument" )
540+ || error_msg. contains( "md5 requires a 'string' argument" ) ,
540541 "Error message should mention missing argument: {}" ,
541542 error_msg
542543 ) ;
@@ -563,7 +564,8 @@ fn test_random_string_missing_length() {
563564 let error = result. err ( ) . unwrap ( ) ;
564565 let error_msg = error. to_string ( ) ;
565566 assert ! (
566- error_msg. contains( "random_string requires a 'length' argument" ) ,
567+ error_msg. contains( "missing keyword argument" )
568+ || error_msg. contains( "random_string requires a 'length' argument" ) ,
567569 "Error message should mention missing length: {}" ,
568570 error_msg
569571 ) ;
You can’t perform that action at this time.
0 commit comments