Skip to content

Commit 1cc04a9

Browse files
committed
Fix integration test for windows
1 parent 0eb1cc7 commit 1cc04a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

product/src/test/java/org/itsallcode/openfasttrace/cli/CliStarterIT.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)