for nonword characters consider whole words boundary to be just different character (r=Peter.Gromov)

This commit is contained in:
Maxim.Mossienko
2015-07-28 16:21:31 +02:00
parent c53f33317f
commit 7da83f8bc1
2 changed files with 12 additions and 4 deletions
@@ -619,6 +619,14 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
List<Usage> usages = FindUtil.findAll(myProject, myEditor, model);
assertNotNull(usages);
assertEquals(2, usages.size());
configureByText(FileTypes.PLAIN_TEXT, "myproperty=@AspectJ");
model = new FindModel();
model.setStringToFind("@AspectJ");
model.setWholeWordsOnly(true);
usages = FindUtil.findAll(myProject, myEditor, model);
assertNotNull(usages);
assertEquals(1, usages.size());
}
public void testFindInCurrentFileOutsideProject() throws Exception {