From 532f2ce9349958863ee629fecf3726a9c8458f2f Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Sat, 19 May 2018 11:12:10 +0200 Subject: [PATCH] SSR: fix test failure on Windows machines --- .../compiler/StringToConstraintsTransformerTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/structuralsearch/testSource/com/intellij/structuralsearch/impl/matcher/compiler/StringToConstraintsTransformerTest.java b/platform/structuralsearch/testSource/com/intellij/structuralsearch/impl/matcher/compiler/StringToConstraintsTransformerTest.java index 84ccc6636af6..f72f616beae3 100644 --- a/platform/structuralsearch/testSource/com/intellij/structuralsearch/impl/matcher/compiler/StringToConstraintsTransformerTest.java +++ b/platform/structuralsearch/testSource/com/intellij/structuralsearch/impl/matcher/compiler/StringToConstraintsTransformerTest.java @@ -142,9 +142,9 @@ public class StringToConstraintsTransformerTest { @Test public void testInvalidRegularExpression() { - expectException("'a:x!(", "Invalid regular expression: Unclosed group near index 3\n" + - "x!(\n" + - " ^"); + expectException("'a:x!(", String.format("Invalid regular expression: Unclosed group near index 3%n" + + "x!(%n" + + " ^")); } @Test @@ -277,8 +277,8 @@ public class StringToConstraintsTransformerTest { @Test public void testInvalidRegex() { - expectException("'T:{ ;", "Invalid regular expression: Illegal repetition\n" + - "{"); + expectException("'T:{ ;", String.format("Invalid regular expression: Illegal repetition%n" + + "{")); } @Test