[IR] Extend test coverage for smart cast handling.

This commit is contained in:
Mads Ager
2021-01-07 13:56:02 +01:00
committed by Dmitry Petrov
parent 6fc0de39c2
commit dfc86feecd
28 changed files with 732 additions and 18 deletions
@@ -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");
@@ -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");
@@ -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");
@@ -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");