File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -924,12 +924,12 @@ mod tests {
924924
925925 let match_input = quirks:: process_match_input ( input, base_url. as_deref ( ) ) ;
926926
927- if let Some ( ExpectedMatch :: String ( s) ) = & case. expected_match {
928- if s == "error" {
929- assert ! ( match_input . is_err ( ) ) ;
930- println ! ( "✅ Passed" ) ;
931- return ;
932- }
927+ if let Some ( ExpectedMatch :: String ( s) ) = & case. expected_match
928+ && s == "error"
929+ {
930+ assert ! ( match_input . is_err ( ) ) ;
931+ println ! ( "✅ Passed" ) ;
932+ return ;
933933 } ;
934934
935935 let input = match_input. expect ( "failed to parse match input" ) ;
@@ -949,13 +949,13 @@ mod tests {
949949 } else {
950950 Ok ( None )
951951 } ;
952- if let Some ( ExpectedMatch :: String ( s) ) = & case. expected_match {
953- if s == "error" {
954- assert ! ( test_res . is_err ( ) ) ;
955- assert ! ( exec_res . is_err( ) ) ;
956- println ! ( "✅ Passed" ) ;
957- return ;
958- }
952+ if let Some ( ExpectedMatch :: String ( s) ) = & case. expected_match
953+ && s == "error"
954+ {
955+ assert ! ( test_res . is_err( ) ) ;
956+ assert ! ( exec_res . is_err ( ) ) ;
957+ println ! ( "✅ Passed" ) ;
958+ return ;
959959 } ;
960960
961961 let expected_match = case. expected_match . map ( |x| match x {
You can’t perform that action at this time.
0 commit comments