Fix assertion arguments.

This commit is contained in:
Ilya Ryzhenkov
2014-06-24 17:38:39 +04:00
parent 14ab3c4de1
commit af8d0f7b9e
@@ -68,7 +68,7 @@ public class NavigateToStdlibSourceRegressionTest extends NavigateToLibraryRegre
PsiFile psiFile = getPsiFileForFileFromSources(file); PsiFile psiFile = getPsiFileForFileFromSources(file);
String text = psiFile.getText(); String text = psiFile.getText();
int index = text.indexOf(element); int index = text.indexOf(element);
assertNotSame(-1, "Cannot find text '" + element + "' in file " + path); assertNotSame("Cannot find text '" + element + "' in file " + path, -1, index);
while (Character.isLetter(text.charAt(index - 1))) { while (Character.isLetter(text.charAt(index - 1))) {
index = text.indexOf(element, index + 1); index = text.indexOf(element, index + 1);
} }