-
-
Notifications
You must be signed in to change notification settings - Fork 150
/
Issue659Test.java
41 lines (34 loc) · 1.22 KB
/
Issue659Test.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package org.elixir_lang.reference.callable;
import com.intellij.psi.PsiElement;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import org.elixir_lang.psi.call.Call;
import static org.elixir_lang.reference.Callable.isParameter;
import static org.elixir_lang.reference.Callable.isVariable;
public class Issue659Test extends LightCodeInsightFixtureTestCase {
/*
* Tests
*/
public void testIs() {
myFixture.configureByFiles("is.ex");
PsiElement callable = myFixture
.getFile()
.findElementAt(myFixture.getCaretOffset())
.getPrevSibling();
assertInstanceOf(callable, Call.class);
assertFalse(
"unresolvable no argument call in at bracket operation is incorrectly marked as a parameter",
isParameter(callable)
);
assertFalse(
"unresolvable no argument call in at bracket operation is incorrectly marked as a variable",
isVariable(callable)
);
}
/*
* Protected Instance Methods
*/
@Override
protected String getTestDataPath() {
return "testData/org/elixir_lang/reference/callable/issue_659";
}
}