File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
product/src/test/java/org/itsallcode/openfasttrace/cli Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -313,11 +313,15 @@ private void assertNoOffendingNewlines()
313313 assertThat ("Has no newline without carriage return and vice-versa" ,
314314 getOutputFileContent ().matches ("\n [^\r ]|[^\n ]\r " ), equalTo (false ));
315315 break ;
316+ case CARRIAGE_RETURN + NEWLINE :
317+ assertThat ("Has no carriage return without newline and vice-versa" ,
318+ getOutputFileContent ().matches ("\r [^\n ]|[^\r ]\n " ), equalTo (false ));
319+ break ;
316320 default :
317321 final String hexCode = systemLineSeparator .chars ()
318322 .mapToObj (c -> String .format ("\\ u%04x" , c ))
319323 .collect (joining ());
320- fail ("Unsupported line separator '%s' (hex: %s)" .formatted (systemLineSeparator , hexCode ));
324+ fail ("Unsupported line separator '%s' (%s)" .formatted (systemLineSeparator , hexCode ));
321325 }
322326 }
323327
You can’t perform that action at this time.
0 commit comments