From 338e06ff21620be2345d11c76b254cc3972fb481 Mon Sep 17 00:00:00 2001 From: "Vitaliy.Bibaev" Date: Wed, 22 Nov 2017 14:24:19 +0300 Subject: [PATCH] Minor: fix bug in tests/test data --- .../sequence/psi/collection/positive/types/AnyToPrimitive.kt | 2 +- .../psi/collection/positive/types/PrimitiveToNullableAny.kt | 2 +- .../streams/kotlin/psi/collection/TypedCollectionChainTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/testData/debugger/sequence/psi/collection/positive/types/AnyToPrimitive.kt b/idea/testData/debugger/sequence/psi/collection/positive/types/AnyToPrimitive.kt index 85c6110a66a..d194fd00a69 100644 --- a/idea/testData/debugger/sequence/psi/collection/positive/types/AnyToPrimitive.kt +++ b/idea/testData/debugger/sequence/psi/collection/positive/types/AnyToPrimitive.kt @@ -1,3 +1,3 @@ fun main(args: Array) { - listOf("abc", null).count() + listOf("abc", 12).map { 10 }.count() } \ No newline at end of file diff --git a/idea/testData/debugger/sequence/psi/collection/positive/types/PrimitiveToNullableAny.kt b/idea/testData/debugger/sequence/psi/collection/positive/types/PrimitiveToNullableAny.kt index b966130d1ed..89ea53875cd 100644 --- a/idea/testData/debugger/sequence/psi/collection/positive/types/PrimitiveToNullableAny.kt +++ b/idea/testData/debugger/sequence/psi/collection/positive/types/PrimitiveToNullableAny.kt @@ -1,3 +1,3 @@ fun main(args: Array) { - listOf(20, 30).map { it.toString().toByteOrNull() }.count() + listOf(20, 30).map { if(it == 20) null else it }.count() } \ No newline at end of file diff --git a/idea/tests/com/intellij/debugger/streams/kotlin/psi/collection/TypedCollectionChainTest.kt b/idea/tests/com/intellij/debugger/streams/kotlin/psi/collection/TypedCollectionChainTest.kt index 745d66c905f..867bb15f64f 100644 --- a/idea/tests/com/intellij/debugger/streams/kotlin/psi/collection/TypedCollectionChainTest.kt +++ b/idea/tests/com/intellij/debugger/streams/kotlin/psi/collection/TypedCollectionChainTest.kt @@ -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)