mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Tests for fixes of PY-46 and PY-47 in submitted in 201808.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
def f1():
|
||||
foo = 1
|
||||
def f2():
|
||||
return f<ref>oo
|
||||
@@ -0,0 +1 @@
|
||||
[f<ref>oo + bar for (foo, bar) in [(1,2),]]
|
||||
@@ -50,6 +50,16 @@ public class PyResolveTest extends ResolveTestCase {
|
||||
assertTrue(targetElement instanceof PyTargetExpression);
|
||||
}
|
||||
|
||||
public void testInnerFuncVar() throws Exception {
|
||||
PsiElement targetElement = resolve();
|
||||
assertTrue(targetElement instanceof PyTargetExpression);
|
||||
}
|
||||
|
||||
public void testTupleInComprh() throws Exception {
|
||||
PsiElement targetElement = resolve();
|
||||
assertTrue(targetElement instanceof PyTargetExpression);
|
||||
}
|
||||
|
||||
public void testForStatement() throws Exception {
|
||||
PsiElement targetElement = resolve();
|
||||
assertTrue(targetElement instanceof PyTargetExpression);
|
||||
|
||||
Reference in New Issue
Block a user