JVM_IR KT-29822 KT-48669 loop over unsigned array, indices, withIndex
This commit is contained in:
committed by
TeamCityServer
parent
2cc6b589f3
commit
be28b3c74d
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+53
@@ -659,6 +659,59 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/forInUnsignedArray")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ForInUnsignedArray extends AbstractIrJsCodegenBoxES6Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInForInUnsignedArray() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInUnsignedArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArray.kt")
|
||||
public void testForInUnsignedArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndices.kt")
|
||||
public void testForInUnsignedArrayIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndicesReversed.kt")
|
||||
public void testForInUnsignedArrayIndicesReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndicesReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayReversed.kt")
|
||||
public void testForInUnsignedArrayReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndex.kt")
|
||||
public void testForInUnsignedArrayWithIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoElementVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexReversed.kt")
|
||||
public void testForInUnsignedArrayWithIndexReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexReversed.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/multiDecl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Generated
+53
@@ -659,6 +659,59 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/forInUnsignedArray")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ForInUnsignedArray extends AbstractIrJsCodegenBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInForInUnsignedArray() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInUnsignedArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArray.kt")
|
||||
public void testForInUnsignedArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndices.kt")
|
||||
public void testForInUnsignedArrayIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndicesReversed.kt")
|
||||
public void testForInUnsignedArrayIndicesReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndicesReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayReversed.kt")
|
||||
public void testForInUnsignedArrayReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndex.kt")
|
||||
public void testForInUnsignedArrayWithIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoElementVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexReversed.kt")
|
||||
public void testForInUnsignedArrayWithIndexReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexReversed.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/multiDecl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Generated
+53
@@ -624,6 +624,59 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/forInUnsignedArray")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ForInUnsignedArray extends AbstractJsCodegenBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInForInUnsignedArray() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInUnsignedArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArray.kt")
|
||||
public void testForInUnsignedArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndices.kt")
|
||||
public void testForInUnsignedArrayIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndicesReversed.kt")
|
||||
public void testForInUnsignedArrayIndicesReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndicesReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayReversed.kt")
|
||||
public void testForInUnsignedArrayReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndex.kt")
|
||||
public void testForInUnsignedArrayWithIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoElementVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexReversed.kt")
|
||||
public void testForInUnsignedArrayWithIndexReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexReversed.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/multiDecl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+53
@@ -406,6 +406,59 @@ public class JsLegacyPrimitiveArraysBoxTestGenerated extends AbstractJsLegacyPri
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/forInUnsignedArray")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ForInUnsignedArray extends AbstractJsLegacyPrimitiveArraysBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInForInUnsignedArray() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInUnsignedArray"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArray.kt")
|
||||
public void testForInUnsignedArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndices.kt")
|
||||
public void testForInUnsignedArrayIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndicesReversed.kt")
|
||||
public void testForInUnsignedArrayIndicesReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndicesReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayReversed.kt")
|
||||
public void testForInUnsignedArrayReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndex.kt")
|
||||
public void testForInUnsignedArrayWithIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoElementVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexReversed.kt")
|
||||
public void testForInUnsignedArrayWithIndexReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexReversed.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/multiDecl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+53
@@ -579,6 +579,59 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/forInUnsignedArray")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ForInUnsignedArray extends AbstractIrCodegenBoxWasmTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest0(this::doTest, TargetBackend.WASM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInForInUnsignedArray() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/arrays/forInUnsignedArray"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArray.kt")
|
||||
public void testForInUnsignedArray() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndices.kt")
|
||||
public void testForInUnsignedArrayIndices() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndices.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayIndicesReversed.kt")
|
||||
public void testForInUnsignedArrayIndicesReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayIndicesReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayReversed.kt")
|
||||
public void testForInUnsignedArrayReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndex.kt")
|
||||
public void testForInUnsignedArrayWithIndex() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndex.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoElementVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInUnsignedArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInUnsignedArrayWithIndexReversed.kt")
|
||||
public void testForInUnsignedArrayWithIndexReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/arrays/forInUnsignedArray/forInUnsignedArrayWithIndexReversed.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/arrays/multiDecl")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user