Skip to content

Commit a2fe993

Browse files
authored
Merge pull request #300 from diffplug/feature/windowsEclipseCommonTests
EclipseCommonTests are no longer sensitive to line-ending problems.
2 parents 4257fee + 726094b commit a2fe993

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib-extra/src/test/java/com/diffplug/spotless/extra/eclipse/EclipseCommonTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.junit.Test;
2323

2424
import com.diffplug.spotless.FormatterStep;
25+
import com.diffplug.spotless.LineEnding;
2526
import com.diffplug.spotless.ResourceHarness;
2627

2728
/**
@@ -78,7 +79,7 @@ public void testSupportedVersions() throws Exception {
7879
}
7980
String output = null;
8081
try {
81-
output = step.format(input, inputFile);
82+
output = LineEnding.toUnix(step.format(input, inputFile));
8283
} catch (Exception e) {
8384
fail("Exception occured when formatting input with version: " + version, e);
8485
}

0 commit comments

Comments
 (0)