mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
middle matching with one char prefix
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ public class JavadocCompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
public void testNamesInMethod1() throws Exception {
|
||||
configureByFile("MethodTagName1.java");
|
||||
assertStringItems("see", "serialData", "since");
|
||||
assertStringItems("see", "serialData", "since", "class", "throws");
|
||||
}
|
||||
|
||||
public void testParamValueCompletion() throws Exception {
|
||||
|
||||
+2
-2
@@ -450,7 +450,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
public void testNoUninitializedFieldsInConstructor() throws Throwable {
|
||||
configureByTestName();
|
||||
assertStringItems("aac", "aab");
|
||||
assertStringItems("aac", "aab", "hashCode");
|
||||
}
|
||||
public void testFieldsSetInAnotherConstructor() throws Throwable { doTest(); }
|
||||
public void testFieldsSetAbove() throws Throwable { doTest(); }
|
||||
@@ -471,7 +471,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
public void testVoidExpectedType() throws Throwable {
|
||||
configureByTestName();
|
||||
assertStringItems("notify", "notifyAll", "wait", "wait", "wait", "getClass", "equals", "hashCode", "toString");
|
||||
type('e');
|
||||
type("eq");
|
||||
assertEquals("equals", assertOneElement(getLookup().getItems()).getLookupString());
|
||||
select();
|
||||
checkResultByTestName();
|
||||
|
||||
@@ -252,7 +252,9 @@ public class NameUtilTest extends UsefulTestCase {
|
||||
assertMatches("*f", "format");
|
||||
assertMatches("*f", "Format");
|
||||
assertMatches("*Stri", "string");
|
||||
assertDoesntMatch("*f", "reformat");
|
||||
assertMatches("*f", "reformat");
|
||||
assertMatches("*f", "reformatCode");
|
||||
assertDoesntMatch("*fc", "reformatCode");
|
||||
assertDoesntMatch("*sTC", "LazyClassTypeConstructor");
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ public class MinusculeMatcher implements Matcher {
|
||||
}
|
||||
|
||||
if (patternIndex + i >= myPattern.length) {
|
||||
return i >= minFragment ? FList.<TextRange>emptyList().prepend(TextRange.from(nameIndex, i)) : null;
|
||||
return FList.<TextRange>emptyList().prepend(TextRange.from(nameIndex, i));
|
||||
}
|
||||
while (i >= minFragment) {
|
||||
int nextWordStart;
|
||||
|
||||
Reference in New Issue
Block a user