Tests for fixes of PY-46 and PY-47 in submitted in 201808.

This commit is contained in:
Dmitry Cheryasov
2008-08-07 00:29:41 +04:00
parent f86dcc6c8b
commit 39d08b9a7d
3 changed files with 15 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
def f1():
foo = 1
def f2():
return f<ref>oo
+1
View File
@@ -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);