FIR: add test repeating problem from KT-50470

This commit is contained in:
Mikhail Glukhikh
2021-12-21 12:29:13 +03:00
committed by teamcity
parent 3fb1096c18
commit e872cfa69a
5 changed files with 151 additions and 0 deletions
@@ -5126,6 +5126,22 @@ public class DiagnosisCompilerFirTestdataTestGenerated extends AbstractDiagnosis
public void testPlusAssignWithLambdaInRhs() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/plusAssignWithLambdaInRhs.kt");
}
@Nested
@TestMetadata("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/problems")
@TestDataPath("$PROJECT_ROOT")
public class Problems {
@Test
public void testAllFilesPresentInProblems() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/problems"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
}
@Test
@TestMetadata("expectedType.kt")
public void testExpectedType() throws Exception {
runTest("compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/problems/expectedType.kt");
}
}
}
@Nested