regexp: fix completion test

This commit is contained in:
Bas Leijdekkers
2016-12-05 18:07:48 +01:00
parent b926260ad2
commit fb5eae77b6
3 changed files with 4 additions and 4 deletions
@@ -60,7 +60,7 @@ public class RegExpCompletionTest extends CodeInsightFixtureTestCase {
}
public void testNamedCharacter() {
myFixture.configureByText(RegExpFileType.INSTANCE, "\\\\N{SMILE<caret>}");
myFixture.configureByText(RegExpFileType.INSTANCE, "\\N{SMILE<caret>}");
final LookupElement[] elements = myFixture.completeBasic();
final List<String> strings = ContainerUtil.map(elements, LookupElement::getLookupString);
assertEquals(Arrays.asList("SMILE", "SMILING FACE WITH SMILING EYES", "SMILING FACE WITH HEART-SHAPED EYES",
@@ -89,7 +89,9 @@ public class RegExpCompletionTest extends CodeInsightFixtureTestCase {
}
public void testPropertyAlpha() throws Throwable {
doTest();
myFixture.configureByText(RegExpFileType.INSTANCE, "\\P{Alp<caret>}");
myFixture.completeBasic();
myFixture.checkResult("\\P{Alpha<caret>}");
}
public void doTest() throws Throwable {
@@ -1 +0,0 @@
\\p{Alp<caret>}
@@ -1 +0,0 @@
\\p{Alpha}