mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Update skeletons for max function
This commit is contained in:
@@ -470,6 +470,11 @@ public class Py3TypeTest extends PyTestCase {
|
||||
"expr = min(1, 2, 3)");
|
||||
}
|
||||
|
||||
public void testMaxResult() {
|
||||
doTest("int",
|
||||
"expr = max(1, 2, 3)");
|
||||
}
|
||||
|
||||
private void doTest(final String expectedType, final String text) {
|
||||
myFixture.configureByText(PythonFileType.INSTANCE, text);
|
||||
final PyExpression expr = myFixture.findElementByText("expr", PyExpression.class);
|
||||
|
||||
@@ -1519,6 +1519,11 @@ public class PyTypeTest extends PyTestCase {
|
||||
"expr = min(1, 2, 3)");
|
||||
}
|
||||
|
||||
public void testMaxResult() {
|
||||
doTest("int",
|
||||
"expr = max(1, 2, 3)");
|
||||
}
|
||||
|
||||
private static List<TypeEvalContext> getTypeEvalContexts(@NotNull PyExpression element) {
|
||||
return ImmutableList.of(TypeEvalContext.codeAnalysis(element.getProject(), element.getContainingFile()).withTracing(),
|
||||
TypeEvalContext.userInitiated(element.getProject(), element.getContainingFile()).withTracing());
|
||||
|
||||
Reference in New Issue
Block a user