From a4242d6d905454fb04c04dd541f549a85fdd84d4 Mon Sep 17 00:00:00 2001 From: Linas Medziunas Date: Wed, 13 Jan 2016 12:36:50 +0200 Subject: Make StringContextTest pass on Windows One assertion in StringContextTest."f interpolator baseline"() was relying on platform specific newline encoding, making it fail when run on Windows. --- test/junit/scala/StringContextTest.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/junit/scala/StringContextTest.scala b/test/junit/scala/StringContextTest.scala index 900852fcc6..b93cd978f4 100644 --- a/test/junit/scala/StringContextTest.scala +++ b/test/junit/scala/StringContextTest.scala @@ -224,11 +224,10 @@ class StringContextTest { // literals and arg indexes f"%%" -> "%", - f" mind%n------%nmatter%n" -> + f" mind%n------%nmatter" -> """| mind |------ - |matter - |""".stripMargin, + |matter""".stripMargin.lines.mkString(compat.Platform.EOL), f"${i}%d % "42 42 9", f"${7}%d % "7 7 9", f"${7}%d %2$$d ${9}%d" -> "7 9 9", -- cgit v1.2.3