Native: add more tests for Swift Set and Dictionary used in Kotlin
This commit is contained in:
committed by
Space
parent
39c73e25a4
commit
38f2b20e1a
@@ -50,6 +50,8 @@ class StdlibTests : TestProvider {
|
||||
TestCase(name: "TestMutableMap", method: withAutorelease(testMutableMap)),
|
||||
TestCase(name: "TestKotlinMutableSetInit", method: withAutorelease(testKotlinMutableSetInit)),
|
||||
TestCase(name: "TestKotlinMutableDictionaryInit", method: withAutorelease(testKotlinMutableDictionaryInit)),
|
||||
TestCase(name: "TestSwiftSetInKotlin", method: withAutorelease(testSwiftSetInKotlin)),
|
||||
TestCase(name: "TestSwiftDictionaryInKotlin", method: withAutorelease(testSwiftDictionaryInKotlin)),
|
||||
]
|
||||
providers.append(self)
|
||||
}
|
||||
@@ -459,4 +461,12 @@ class StdlibTests : TestProvider {
|
||||
StdlibKt.gc() // To reproduce https://github.com/JetBrains/kotlin-native/issues/3259
|
||||
}
|
||||
|
||||
func testSwiftSetInKotlin() throws {
|
||||
try StdlibKt.testSet(set: ["a", "b", "c", "d", "e", "f", "g"])
|
||||
}
|
||||
|
||||
func testSwiftDictionaryInKotlin() throws {
|
||||
try StdlibKt.testMap(map: ["a" : 1, "b" : 2, "c" : 3, "d" : 4, "e" : 5, "f" : 6, "g" : 7])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user