normalize line breaks in tests

This commit is contained in:
Dmitry Jemerov
2011-07-27 02:49:24 +02:00
parent a99bad7e47
commit 88b0a7a45e
@@ -4,6 +4,7 @@
package org.jetbrains.jet.cfg;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.jetbrains.annotations.NotNull;
@@ -118,7 +119,7 @@ public class JetControlFlowTest extends JetTestCaseBase {
FileUtil.writeToFile(expectedInstructionsFile, instructionDump.toString());
fail("No expected instructions for " + name + " generated result is written into " + expectedInstructionsFileName);
}
String expectedInstructions = FileUtil.loadFile(expectedInstructionsFile);
String expectedInstructions = StringUtil.convertLineSeparators(FileUtil.loadFile(expectedInstructionsFile));
assertEquals(expectedInstructions, instructionDump.toString());