Fix language features in tests for gradual migration to 1.3 (part 2)

In 1.3, due to changes in language, testdata for some tests can be
different from 1.2

We want to simlultaneously test both versions, so instead of fixing
language version in such tests, we split them into two: one with fixed
1.2, another with fixed 1.3
This commit is contained in:
Dmitry Savvinov
2018-06-22 11:23:52 +03:00
parent 6d733ff7b9
commit 5cb949ad7f
71 changed files with 1637 additions and 99 deletions
@@ -222,9 +222,14 @@ public class ControlFlowTestGenerated extends AbstractControlFlowTest {
runTest("compiler/testData/cfg/controlStructures/If.kt");
}
@TestMetadata("incorrectIndex.kt")
public void testIncorrectIndex() throws Exception {
runTest("compiler/testData/cfg/controlStructures/incorrectIndex.kt");
@TestMetadata("incorrectIndex_After.kt")
public void testIncorrectIndex_After() throws Exception {
runTest("compiler/testData/cfg/controlStructures/incorrectIndex_After.kt");
}
@TestMetadata("incorrectIndex_Before.kt")
public void testIncorrectIndex_Before() throws Exception {
runTest("compiler/testData/cfg/controlStructures/incorrectIndex_Before.kt");
}
@TestMetadata("InfiniteLoops.kt")
@@ -318,9 +323,14 @@ public class ControlFlowTestGenerated extends AbstractControlFlowTest {
runTest("compiler/testData/cfg/deadCode/DeadCode.kt");
}
@TestMetadata("notLocalReturn.kt")
public void testNotLocalReturn() throws Exception {
runTest("compiler/testData/cfg/deadCode/notLocalReturn.kt");
@TestMetadata("notLocalReturn_after.kt")
public void testNotLocalReturn_after() throws Exception {
runTest("compiler/testData/cfg/deadCode/notLocalReturn_after.kt");
}
@TestMetadata("notLocalReturn_before.kt")
public void testNotLocalReturn_before() throws Exception {
runTest("compiler/testData/cfg/deadCode/notLocalReturn_before.kt");
}
@TestMetadata("returnInElvis.kt")
@@ -222,9 +222,14 @@ public class PseudoValueTestGenerated extends AbstractPseudoValueTest {
runTest("compiler/testData/cfg/controlStructures/If.kt");
}
@TestMetadata("incorrectIndex.kt")
public void testIncorrectIndex() throws Exception {
runTest("compiler/testData/cfg/controlStructures/incorrectIndex.kt");
@TestMetadata("incorrectIndex_After.kt")
public void testIncorrectIndex_After() throws Exception {
runTest("compiler/testData/cfg/controlStructures/incorrectIndex_After.kt");
}
@TestMetadata("incorrectIndex_Before.kt")
public void testIncorrectIndex_Before() throws Exception {
runTest("compiler/testData/cfg/controlStructures/incorrectIndex_Before.kt");
}
@TestMetadata("InfiniteLoops.kt")
@@ -318,9 +323,14 @@ public class PseudoValueTestGenerated extends AbstractPseudoValueTest {
runTest("compiler/testData/cfg/deadCode/DeadCode.kt");
}
@TestMetadata("notLocalReturn.kt")
public void testNotLocalReturn() throws Exception {
runTest("compiler/testData/cfg/deadCode/notLocalReturn.kt");
@TestMetadata("notLocalReturn_after.kt")
public void testNotLocalReturn_after() throws Exception {
runTest("compiler/testData/cfg/deadCode/notLocalReturn_after.kt");
}
@TestMetadata("notLocalReturn_before.kt")
public void testNotLocalReturn_before() throws Exception {
runTest("compiler/testData/cfg/deadCode/notLocalReturn_before.kt");
}
@TestMetadata("returnInElvis.kt")