K1/K2: add BB test for (add/remove)(First/Last) calls on mutable list

Related to KT-64640
This commit is contained in:
Mikhail Glukhikh
2024-01-02 13:15:44 +01:00
committed by Space Team
parent 940c3c81ad
commit 8c2f5c767f
10 changed files with 137 additions and 0 deletions
@@ -802,4 +802,20 @@ public class LLFirBlackBoxModernJdkCodegenBasedTestGenerated extends AbstractLLF
}
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava21")
@TestDataPath("$PROJECT_ROOT")
public class TestsWithJava21 {
@Test
@TestMetadata("addRemoveOnMutableList.kt")
public void testAddRemoveOnMutableList() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava21/addRemoveOnMutableList.kt");
}
@Test
public void testAllFilesPresentInTestsWithJava21() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava21"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
}
}
@@ -802,4 +802,20 @@ public class LLFirReversedBlackBoxModernJdkCodegenBasedTestGenerated extends Abs
}
}
}
@Nested
@TestMetadata("compiler/testData/codegen/boxModernJdk/testsWithJava21")
@TestDataPath("$PROJECT_ROOT")
public class TestsWithJava21 {
@Test
@TestMetadata("addRemoveOnMutableList.kt")
public void testAddRemoveOnMutableList() throws Exception {
runTest("compiler/testData/codegen/boxModernJdk/testsWithJava21/addRemoveOnMutableList.kt");
}
@Test
public void testAllFilesPresentInTestsWithJava21() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxModernJdk/testsWithJava21"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
}
}