From 88b0a7a45efaf14f19fe2b36c78c5aa75439fc9c Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 27 Jul 2011 02:49:24 +0200 Subject: [PATCH] normalize line breaks in tests --- idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java b/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java index 210f82eafb6..cb320013468 100644 --- a/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java +++ b/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java @@ -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());