Add range iteration tests for rangeUntil
#KT-52932
This commit is contained in:
+744
@@ -29263,6 +29263,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/ranges/expression/openRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("openRangeUntil.kt")
|
||||
public void testOpenRangeUntil() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/expression/openRangeUntil.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overflowZeroDownToMaxValue.kt")
|
||||
public void testOverflowZeroDownToMaxValue() throws Exception {
|
||||
@@ -30103,6 +30109,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/ranges/literal/openRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("openRangeUntil.kt")
|
||||
public void testOpenRangeUntil() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/literal/openRangeUntil.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overflowZeroDownToMaxValue.kt")
|
||||
public void testOverflowZeroDownToMaxValue() throws Exception {
|
||||
@@ -30696,6 +30708,186 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class RangeUntil {
|
||||
@Test
|
||||
public void testAllFilesPresentInRangeUntil() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyProgression.kt")
|
||||
public void testEmptyProgression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/emptyProgression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepNegative.kt")
|
||||
public void testIllegalStepNegative() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/illegalStepNegative.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepThenLegalStep.kt")
|
||||
public void testIllegalStepThenLegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/illegalStepThenLegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepZero.kt")
|
||||
public void testIllegalStepZero() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/illegalStepZero.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("legalStepThenIllegalStep.kt")
|
||||
public void testLegalStepThenIllegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/legalStepThenIllegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleElementStepTwo.kt")
|
||||
public void testSingleElementStepTwo() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/singleElementStepTwo.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOne.kt")
|
||||
public void testStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToOutsideRange.kt")
|
||||
public void testStepToOutsideRange() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepToOutsideRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLast.kt")
|
||||
public void testStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLast.kt")
|
||||
public void testStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/stepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class NestedStep {
|
||||
@Test
|
||||
public void testAllFilesPresentInNestedStep() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOneThenStepOne.kt")
|
||||
public void testStepOneThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepOneThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenSameStep.kt")
|
||||
public void testStepThenSameStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepThenSameStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepOne.kt")
|
||||
public void testStepToSameLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSameLast.kt")
|
||||
public void testStepToSameLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSameLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepOne.kt")
|
||||
public void testStepToSmallerLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSameLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class Reversed {
|
||||
@Test
|
||||
public void testAllFilesPresentInReversed() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStep.kt")
|
||||
public void testReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/reversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversed.kt")
|
||||
public void testReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/reversedThenStepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversedThenStep.kt")
|
||||
public void testReversedThenStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversed.kt")
|
||||
public void testStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/stepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStep.kt")
|
||||
public void testStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/stepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStepThenReversed.kt")
|
||||
public void testStepThenReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/expression/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/expression/until")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -31362,6 +31554,186 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class RangeUntil {
|
||||
@Test
|
||||
public void testAllFilesPresentInRangeUntil() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyProgression.kt")
|
||||
public void testEmptyProgression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/emptyProgression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepNegative.kt")
|
||||
public void testIllegalStepNegative() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/illegalStepNegative.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepThenLegalStep.kt")
|
||||
public void testIllegalStepThenLegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/illegalStepThenLegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepZero.kt")
|
||||
public void testIllegalStepZero() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/illegalStepZero.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("legalStepThenIllegalStep.kt")
|
||||
public void testLegalStepThenIllegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/legalStepThenIllegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleElementStepTwo.kt")
|
||||
public void testSingleElementStepTwo() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/singleElementStepTwo.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOne.kt")
|
||||
public void testStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToOutsideRange.kt")
|
||||
public void testStepToOutsideRange() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepToOutsideRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLast.kt")
|
||||
public void testStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLast.kt")
|
||||
public void testStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/stepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class NestedStep {
|
||||
@Test
|
||||
public void testAllFilesPresentInNestedStep() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOneThenStepOne.kt")
|
||||
public void testStepOneThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepOneThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenSameStep.kt")
|
||||
public void testStepThenSameStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepThenSameStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepOne.kt")
|
||||
public void testStepToSameLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSameLast.kt")
|
||||
public void testStepToSameLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSameLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepOne.kt")
|
||||
public void testStepToSmallerLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSameLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class Reversed {
|
||||
@Test
|
||||
public void testAllFilesPresentInReversed() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStep.kt")
|
||||
public void testReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/reversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversed.kt")
|
||||
public void testReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/reversedThenStepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversedThenStep.kt")
|
||||
public void testReversedThenStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversed.kt")
|
||||
public void testStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/stepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStep.kt")
|
||||
public void testStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/stepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStepThenReversed.kt")
|
||||
public void testStepThenReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/literal/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/literal/until")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -32039,6 +32411,186 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class RangeUntil {
|
||||
@Test
|
||||
public void testAllFilesPresentInRangeUntil() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyProgression.kt")
|
||||
public void testEmptyProgression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/emptyProgression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepNegative.kt")
|
||||
public void testIllegalStepNegative() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/illegalStepNegative.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepThenLegalStep.kt")
|
||||
public void testIllegalStepThenLegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/illegalStepThenLegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepZero.kt")
|
||||
public void testIllegalStepZero() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/illegalStepZero.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("legalStepThenIllegalStep.kt")
|
||||
public void testLegalStepThenIllegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/legalStepThenIllegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleElementStepTwo.kt")
|
||||
public void testSingleElementStepTwo() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/singleElementStepTwo.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOne.kt")
|
||||
public void testStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToOutsideRange.kt")
|
||||
public void testStepToOutsideRange() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepToOutsideRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLast.kt")
|
||||
public void testStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLast.kt")
|
||||
public void testStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/stepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class NestedStep {
|
||||
@Test
|
||||
public void testAllFilesPresentInNestedStep() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOneThenStepOne.kt")
|
||||
public void testStepOneThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepOneThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenSameStep.kt")
|
||||
public void testStepThenSameStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepThenSameStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepOne.kt")
|
||||
public void testStepToSameLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSameLast.kt")
|
||||
public void testStepToSameLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSameLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepOne.kt")
|
||||
public void testStepToSmallerLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSameLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class Reversed {
|
||||
@Test
|
||||
public void testAllFilesPresentInReversed() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStep.kt")
|
||||
public void testReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/reversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversed.kt")
|
||||
public void testReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/reversedThenStepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversedThenStep.kt")
|
||||
public void testReversedThenStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversed.kt")
|
||||
public void testStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/stepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStep.kt")
|
||||
public void testStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/stepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStepThenReversed.kt")
|
||||
public void testStepThenReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/expression/until")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -32705,6 +33257,186 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class RangeUntil {
|
||||
@Test
|
||||
public void testAllFilesPresentInRangeUntil() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyProgression.kt")
|
||||
public void testEmptyProgression() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/emptyProgression.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepNegative.kt")
|
||||
public void testIllegalStepNegative() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/illegalStepNegative.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepThenLegalStep.kt")
|
||||
public void testIllegalStepThenLegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/illegalStepThenLegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalStepZero.kt")
|
||||
public void testIllegalStepZero() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/illegalStepZero.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("legalStepThenIllegalStep.kt")
|
||||
public void testLegalStepThenIllegalStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/legalStepThenIllegalStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("singleElementStepTwo.kt")
|
||||
public void testSingleElementStepTwo() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/singleElementStepTwo.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOne.kt")
|
||||
public void testStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToOutsideRange.kt")
|
||||
public void testStepToOutsideRange() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepToOutsideRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLast.kt")
|
||||
public void testStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLast.kt")
|
||||
public void testStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/stepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class NestedStep {
|
||||
@Test
|
||||
public void testAllFilesPresentInNestedStep() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepOneThenStepOne.kt")
|
||||
public void testStepOneThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepOneThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenSameStep.kt")
|
||||
public void testStepThenSameStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepThenSameStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepOne.kt")
|
||||
public void testStepToSameLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSameLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSameLast.kt")
|
||||
public void testStepToSameLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSameLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSameLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSameLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepOne.kt")
|
||||
public void testStepToSmallerLastThenStepOne() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepOne.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSameLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSameLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSameLast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepToSmallerLastThenStepToSmallerLast.kt")
|
||||
public void testStepToSmallerLastThenStepToSmallerLast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/nestedStep/stepToSmallerLastThenStepToSmallerLast.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("codegen")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class Reversed {
|
||||
@Test
|
||||
public void testAllFilesPresentInReversed() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStep.kt")
|
||||
public void testReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/reversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversed.kt")
|
||||
public void testReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/reversedThenStepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reversedThenStepThenReversedThenStep.kt")
|
||||
public void testReversedThenStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/reversedThenStepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversed.kt")
|
||||
public void testStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/stepThenReversed.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStep.kt")
|
||||
public void testStepThenReversedThenStep() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/stepThenReversedThenStep.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("stepThenReversedThenStepThenReversed.kt")
|
||||
public void testStepThenReversedThenStepThenReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/rangeUntil/reversed/stepThenReversedThenStepThenReversed.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/ranges/stepped/unsigned/literal/until")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -33054,6 +33786,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/ranges/unsigned/expression/openRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("openRangeUntil.kt")
|
||||
public void testOpenRangeUntil() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/unsigned/expression/openRangeUntil.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overflowZeroDownToMaxValue.kt")
|
||||
public void testOverflowZeroDownToMaxValue() throws Exception {
|
||||
@@ -33246,6 +33984,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/ranges/unsigned/literal/openRange.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("openRangeUntil.kt")
|
||||
public void testOpenRangeUntil() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/unsigned/literal/openRangeUntil.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("overflowZeroDownToMaxValue.kt")
|
||||
public void testOverflowZeroDownToMaxValue() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user