Minor: fix bug in tests/test data

This commit is contained in:
Vitaliy.Bibaev
2017-11-22 14:24:19 +03:00
committed by Yan Zhulanow
parent 91348e3b2a
commit 338e06ff21
3 changed files with 3 additions and 3 deletions
@@ -1,3 +1,3 @@
fun main(args: Array<String>) {
<caret> listOf("abc", null).count()
<caret> listOf("abc", 12).map { 10 }.count()
}
@@ -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()
}
@@ -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)