Make tests about mod and varargs valid for 1.3 version

This commit is contained in:
Mikhail Zarechenskiy
2018-07-10 17:54:40 +03:00
parent f03dc62173
commit 857cc0f728
12 changed files with 170 additions and 63 deletions
@@ -141,6 +141,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/annotations/resolveWithLowPriorityAnnotation.kt");
}
@TestMetadata("singleAssignmentToVarargInAnnotation.kt")
public void testSingleAssignmentToVarargInAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt");
}
@TestMetadata("varargInAnnotationParameter.kt")
public void testVarargInAnnotationParameter() throws Exception {
runTest("compiler/testData/codegen/box/annotations/varargInAnnotationParameter.kt");
@@ -10280,11 +10285,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
@RunWith(JUnit3RunnerWithInners.class)
public static class BigArity extends AbstractIrBlackBoxCodegenTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
}
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_IR, true);
}
@TestMetadata("callWithIncorrectNumberOfArguments.kt")
@@ -21393,6 +21398,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/vararg/kt796_797.kt");
}
@TestMetadata("singleAssignmentToVarargsInFunction.kt")
public void testSingleAssignmentToVarargsInFunction() throws Exception {
runTest("compiler/testData/codegen/box/vararg/singleAssignmentToVarargsInFunction.kt");
}
@TestMetadata("spreadCopiesArray.kt")
public void testSpreadCopiesArray() throws Exception {
runTest("compiler/testData/codegen/box/vararg/spreadCopiesArray.kt");