Compare line-ending-neutral in the two tests that failed on Windows · openjavaformat/open-java-format@a60e060 · GitHub
Skip to content

Commit a60e060

Browse files
committed
Compare line-ending-neutral in the two tests that failed on Windows
The first Windows run of the plugin tests failed three cases, none of them in the native formatter. The Windows checkout gives example1.patch CRLF line endings, so parsing it as git output found no files; git itself prints a diff with LF, so the test now reads the fixture that way. And Spotless writes the platform's line endings, CRLF on Windows, which the Spotless test compared against a text block with LF; it now compares ignoring line endings.
1 parent e530bbe commit a60e060

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎gradle-open-java-format/src/test/java/com/palantir/javaformat/gradle/FormatDiffTest.java‎

Lines changed: 3 additions & 1 deletion

‎gradle-open-java-format/src/test/java/com/palantir/javaformat/gradle/PalantirJavaFormatSpotlessPluginTest.java‎

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)