[FIR2IR] Add test for problematic KT-42359

This commit is contained in:
Mikhail Glukhikh
2020-09-30 18:57:51 +03:00
parent 49307e243c
commit fb4f27e136
4 changed files with 124 additions and 0 deletions
@@ -1718,6 +1718,11 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.ANY, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
}
@TestMetadata("AllCandidates.kt")
public void testAllCandidates() throws Exception {
runTest("compiler/testData/ir/irText/firProblems/AllCandidates.kt");
}
public void testAllFilesPresentInFirProblems() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/firProblems"), Pattern.compile("^(.+)\\.kt$"), null, true);
}