Skip to content

Commit d4510aa

Browse files
sbogolepovSpace Team
authored andcommitted
[Native] Fix tests for objcExportBlockExplicitParameterNames=true
^KT-77488 Fixed
1 parent bd56936 commit d4510aa

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

native/objcexport-header-generator/impl/k1/test/org/jetbrains/kotlin/backend/konan/testUtils/Fe10BaseDeclarationsGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private object Fe10BaseDeclarationsGenerator : ObjCExportBaseDeclarationsTest.Ba
3232
namer = createObjCExportNamer(configuration = createObjCExportNamerConfiguration(topLevelNamePrefix = topLevelPrefix)),
3333
problemCollector = ObjCExportProblemCollector.SILENT,
3434
objcGenerics = true,
35-
objcExportBlockExplicitParameterNames = false,
35+
objcExportBlockExplicitParameterNames = true,
3636
)
3737

3838
return translator.generateBaseDeclarations()

native/objcexport-header-generator/impl/k1/test/org/jetbrains/kotlin/backend/konan/tests/ObjCExportMapperTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ class ObjCExportMapperTest : InlineSourceTestEnvironment {
7272
namer = objcExportNamer,
7373
problemCollector = ObjCExportProblemCollector.SILENT,
7474
objcGenerics = true,
75-
objcExportBlockExplicitParameterNames = false,
75+
objcExportBlockExplicitParameterNames = true,
7676
shouldExportKDoc = false,
7777
additionalImports = emptyList()
7878
),
7979
mapper = objcExportMapper,
8080
namer = objcExportNamer,
8181
problemCollector = ObjCExportProblemCollector.SILENT,
8282
objcGenerics = true,
83-
objcExportBlockExplicitParameterNames = false,
83+
objcExportBlockExplicitParameterNames = true,
8484
)
8585

8686
val listClassDescriptor = module.findClassAcrossModuleDependencies(ClassId.fromString("kotlin/collections/List"))!!

native/objcexport-header-generator/test/org/jetbrains/kotlin/backend/konan/testUtils/HeaderGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ interface HeaderGenerator {
3636

3737
val explicitMethodFamily: Boolean = false,
3838

39-
val objcExportBlockExplicitParameterNames: Boolean = false,
39+
val objcExportBlockExplicitParameterNames: Boolean = true,
4040
)
4141

4242

native/objcexport-header-generator/test/org/jetbrains/kotlin/backend/konan/tests/ObjCExportHeaderGeneratorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ class ObjCExportHeaderGeneratorTest(private val generator: HeaderGenerator) {
652652
@Test
653653
@TodoAnalysisApi
654654
fun `test - block with explicit parameter names`() {
655-
doTest(headersTestDataDir.resolve("blockWithExplicitParameterNames"), Configuration(objcExportBlockExplicitParameterNames = true))
655+
doTest(headersTestDataDir.resolve("blockWithExplicitParameterNames"))
656656
}
657657

658658
@Test

0 commit comments

Comments
 (0)