Revert "Ignore tests on big function types until master is 1.3"
This reverts commit f03dc62173.
This commit is contained in:
committed by
Ilya Gorbunov
parent
082da82f3e
commit
c369e67e9f
-1
@@ -1,7 +1,6 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
// FILE: J.java
|
// FILE: J.java
|
||||||
|
|
||||||
// import kotlin.jvm.functions.Arity;
|
// import kotlin.jvm.functions.Arity;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// IGNORE_BACKEND: JS_IR
|
// IGNORE_BACKEND: JS_IR
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
|
|
||||||
class A(val value: Int) {
|
class A(val value: Int) {
|
||||||
// for (i in 1..254) { print("p${"%03d".format(i)}: A, "); if (i % 10 == 0) println() }; println()
|
// for (i in 1..254) { print("p${"%03d".format(i)}: A, "); if (i % 10 == 0) println() }; println()
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// IGNORE_BACKEND: JS_IR, JS
|
// IGNORE_BACKEND: JS_IR, JS
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
|
|
||||||
class A
|
class A
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
|
|
||||||
class A
|
class A
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
|
|
||||||
class A(val value: Int)
|
class A(val value: Int)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
// FILE: J.java
|
// FILE: J.java
|
||||||
|
|
||||||
// import kotlin.jvm.functions.Arity;
|
// import kotlin.jvm.functions.Arity;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// Implementing function interface is prohibited in JavaScript
|
// Implementing function interface is prohibited in JavaScript
|
||||||
// IGNORE_BACKEND: JS_IR, JS
|
// IGNORE_BACKEND: JS_IR, JS
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
|
|
||||||
class A(val value: String)
|
class A(val value: String)
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// FILE: Test.java
|
// FILE: Test.java
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// IGNORE_BACKEND: JS_IR, JS, NATIVE
|
// IGNORE_BACKEND: JS_IR, JS, NATIVE
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
// WITH_REFLECT
|
// WITH_REFLECT
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +FunctionTypesWithBigArity
|
// !LANGUAGE: +FunctionTypesWithBigArity
|
||||||
// IGNORE_BACKEND: JS_IR, JS, NATIVE
|
// IGNORE_BACKEND: JS_IR, JS, NATIVE
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
|
||||||
// WITH_REFLECT
|
// WITH_REFLECT
|
||||||
|
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|||||||
+50
-50
@@ -10615,46 +10615,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
public static class BigArity extends AbstractLightAnalysisModeTest {
|
public static class BigArity extends AbstractLightAnalysisModeTest {
|
||||||
@TestMetadata("callWithIncorrectNumberOfArguments.kt")
|
|
||||||
public void ignoreCallWithIncorrectNumberOfArguments() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/callWithIncorrectNumberOfArguments.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("function255.kt")
|
|
||||||
public void ignoreFunction255() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/function255.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("instanceOfCallableReference.kt")
|
|
||||||
public void ignoreInstanceOfCallableReference() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/instanceOfCallableReference.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("invokeCallableReference.kt")
|
|
||||||
public void ignoreInvokeCallableReference() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/invokeCallableReference.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("invokeLambda.kt")
|
|
||||||
public void ignoreInvokeLambda() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/invokeLambda.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("javaLambda.kt")
|
|
||||||
public void ignoreJavaLambda() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/javaLambda.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("noBigFunctionTypes.kt")
|
@TestMetadata("noBigFunctionTypes.kt")
|
||||||
public void ignoreNoBigFunctionTypes() throws Exception {
|
public void ignoreNoBigFunctionTypes() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/noBigFunctionTypes.kt");
|
runTest("compiler/testData/codegen/box/functions/bigArity/noBigFunctionTypes.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("subclass.kt")
|
|
||||||
public void ignoreSubclass() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/functions/bigArity/subclass.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void runTest(String testDataFilePath) throws Exception {
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
}
|
}
|
||||||
@@ -10662,6 +10627,41 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
public void testAllFilesPresentInBigArity() throws Exception {
|
public void testAllFilesPresentInBigArity() throws Exception {
|
||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/functions/bigArity"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/functions/bigArity"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("callWithIncorrectNumberOfArguments.kt")
|
||||||
|
public void testCallWithIncorrectNumberOfArguments() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/functions/bigArity/callWithIncorrectNumberOfArguments.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("function255.kt")
|
||||||
|
public void testFunction255() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/functions/bigArity/function255.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("instanceOfCallableReference.kt")
|
||||||
|
public void testInstanceOfCallableReference() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/functions/bigArity/instanceOfCallableReference.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("invokeCallableReference.kt")
|
||||||
|
public void testInvokeCallableReference() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/functions/bigArity/invokeCallableReference.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("invokeLambda.kt")
|
||||||
|
public void testInvokeLambda() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/functions/bigArity/invokeLambda.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaLambda.kt")
|
||||||
|
public void testJavaLambda() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/functions/bigArity/javaLambda.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("subclass.kt")
|
||||||
|
public void testSubclass() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/functions/bigArity/subclass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/codegen/box/functions/functionExpression")
|
@TestMetadata("compiler/testData/codegen/box/functions/functionExpression")
|
||||||
@@ -12319,11 +12319,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
public static class NotNullAssertions extends AbstractLightAnalysisModeTest {
|
public static class NotNullAssertions extends AbstractLightAnalysisModeTest {
|
||||||
@TestMetadata("functionWithBigArity.kt")
|
|
||||||
public void ignoreFunctionWithBigArity() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/functionWithBigArity.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void runTest(String testDataFilePath) throws Exception {
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
}
|
}
|
||||||
@@ -12342,6 +12337,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/extensionReceiverParameter.kt");
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/extensionReceiverParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("functionWithBigArity.kt")
|
||||||
|
public void testFunctionWithBigArity() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/functionWithBigArity.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator_lv11.kt")
|
@TestMetadata("incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator_lv11.kt")
|
||||||
public void testIncWithNullabilityAssertionOnExtensionReceiverInPrivateOperator_lv11() throws Exception {
|
public void testIncWithNullabilityAssertionOnExtensionReceiverInPrivateOperator_lv11() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator_lv11.kt");
|
runTest("compiler/testData/codegen/box/javaInterop/notNullAssertions/incWithNullabilityAssertionOnExtensionReceiverInPrivateOperator_lv11.kt");
|
||||||
@@ -17389,11 +17389,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
public static class Call extends AbstractLightAnalysisModeTest {
|
public static class Call extends AbstractLightAnalysisModeTest {
|
||||||
@TestMetadata("bigArity.kt")
|
|
||||||
public void ignoreBigArity() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/reflection/call/bigArity.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void runTest(String testDataFilePath) throws Exception {
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
}
|
}
|
||||||
@@ -17402,6 +17397,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/call"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/call"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("bigArity.kt")
|
||||||
|
public void testBigArity() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/call/bigArity.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("callInstanceJavaMethod.kt")
|
@TestMetadata("callInstanceJavaMethod.kt")
|
||||||
public void testCallInstanceJavaMethod() throws Exception {
|
public void testCallInstanceJavaMethod() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/reflection/call/callInstanceJavaMethod.kt");
|
runTest("compiler/testData/codegen/box/reflection/call/callInstanceJavaMethod.kt");
|
||||||
@@ -18845,11 +18845,6 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
@RunWith(JUnit3RunnerWithInners.class)
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
public static class Parameters extends AbstractLightAnalysisModeTest {
|
public static class Parameters extends AbstractLightAnalysisModeTest {
|
||||||
@TestMetadata("bigArity.kt")
|
|
||||||
public void ignoreBigArity() throws Exception {
|
|
||||||
runTest("compiler/testData/codegen/box/reflection/parameters/bigArity.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void runTest(String testDataFilePath) throws Exception {
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||||
}
|
}
|
||||||
@@ -18858,6 +18853,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/parameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/reflection/parameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("bigArity.kt")
|
||||||
|
public void testBigArity() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/reflection/parameters/bigArity.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("boundInnerClassConstructor.kt")
|
@TestMetadata("boundInnerClassConstructor.kt")
|
||||||
public void testBoundInnerClassConstructor() throws Exception {
|
public void testBoundInnerClassConstructor() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt");
|
runTest("compiler/testData/codegen/box/reflection/parameters/boundInnerClassConstructor.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user