fix tests?

This commit is contained in:
peter
2012-07-25 18:45:07 +02:00
parent 854a372efb
commit f1d7383838
2 changed files with 4 additions and 0 deletions
@@ -50,6 +50,7 @@ public class NameUtilTest extends UsefulTestCase {
assertMatches("NaUtTe", "NameUtilTest");
assertMatches("AACl", "AAClass");
assertMatches("ZZZ", "ZZZZZZZZZZ");
assertMatches("", "");
}
public void testSkipWords() {
@@ -133,6 +133,9 @@ public class MinusculeMatcher implements Matcher {
return null;
}
if (!isWildcard(patternIndex)) {
if (patternIndex == myPattern.length) {
return FList.emptyList();
}
return matchFragment(name, patternIndex, nameIndex);
}