[IR] Extend test coverage for smart cast handling.
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+10
@@ -11220,6 +11220,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToInt.kt")
|
||||
public void testSmartCastToInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenNoSubject_properIeeeComparisons.kt")
|
||||
public void testWhenNoSubject_properIeeeComparisons() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/whenNoSubject_properIeeeComparisons.kt");
|
||||
@@ -24857,6 +24862,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSmartCast.kt")
|
||||
public void testMultipleSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullSmartCast.kt")
|
||||
public void testNullSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt");
|
||||
|
||||
Generated
+10
@@ -11220,6 +11220,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToInt.kt")
|
||||
public void testSmartCastToInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenNoSubject_properIeeeComparisons.kt")
|
||||
public void testWhenNoSubject_properIeeeComparisons() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/whenNoSubject_properIeeeComparisons.kt");
|
||||
@@ -24857,6 +24862,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSmartCast.kt")
|
||||
public void testMultipleSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullSmartCast.kt")
|
||||
public void testNullSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt");
|
||||
|
||||
Generated
+10
@@ -11275,6 +11275,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToInt.kt")
|
||||
public void testSmartCastToInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("when.kt")
|
||||
public void testWhen() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/when.kt");
|
||||
@@ -24857,6 +24862,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/lambdaArgumentWithoutType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSmartCast.kt")
|
||||
public void testMultipleSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullSmartCast.kt")
|
||||
public void testNullSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/nullSmartCast.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+10
@@ -5886,6 +5886,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToDoubleAndComparableToDouble.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastToInt.kt")
|
||||
public void testSmartCastToInt() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/smartCastToInt.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("whenNoSubject_properIeeeComparisons.kt")
|
||||
public void testWhenNoSubject_properIeeeComparisons() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ieee754/whenNoSubject_properIeeeComparisons.kt");
|
||||
@@ -13253,6 +13258,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/smartCasts/kt19100.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multipleSmartCast.kt")
|
||||
public void testMultipleSmartCast() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/multipleSmartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCastInsideIf.kt")
|
||||
public void testSmartCastInsideIf() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/smartCasts/smartCastInsideIf.kt");
|
||||
|
||||
Reference in New Issue
Block a user