Fix assertion arguments.
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ public class NavigateToStdlibSourceRegressionTest extends NavigateToLibraryRegre
|
||||
PsiFile psiFile = getPsiFileForFileFromSources(file);
|
||||
String text = psiFile.getText();
|
||||
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))) {
|
||||
index = text.indexOf(element, index + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user