Minor: fix bug in tests/test data
This commit is contained in:
committed by
Yan Zhulanow
parent
91348e3b2a
commit
338e06ff21
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
<caret> listOf("abc", null).count()
|
||||
<caret> listOf("abc", 12).map { 10 }.count()
|
||||
}
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun main(args: Array<String>) {
|
||||
listOf(20, 30).map { it.toStrin<caret>g().toByteOrNull() }.count()
|
||||
listO<caret>f(20, 30).map { if(it == 20) null else it }.count()
|
||||
}
|
||||
+1
-1
@@ -41,7 +41,7 @@ class TypedCollectionChainTest : TypedChainTestCase("collection/positive/types")
|
||||
fun testNullableAnyToPrimitive() = doTest(KotlinTypes.NULLABLE_ANY, KotlinTypes.BOOLEAN)
|
||||
fun testPrimitiveToNullableAny() = doTest(KotlinTypes.INT, KotlinTypes.NULLABLE_ANY)
|
||||
|
||||
fun testAnyToPrimitive() = doTest(KotlinTypes.ANY, KotlinTypes.BOOLEAN)
|
||||
fun testAnyToPrimitive() = doTest(KotlinTypes.ANY, KotlinTypes.INT)
|
||||
fun testPrimitiveToAny() = doTest(KotlinTypes.INT, KotlinTypes.ANY)
|
||||
|
||||
fun testNullableToNotNull() = doTest(KotlinTypes.NULLABLE_ANY, KotlinTypes.INT)
|
||||
|
||||
Reference in New Issue
Block a user