[Tests] Trim contents before checking for FIR_IDENTICAL
This commit is contained in:
committed by
Space Team
parent
6b919e2593
commit
10e94f90ac
-42
@@ -1,42 +0,0 @@
|
||||
|
||||
import java.util.*
|
||||
|
||||
fun <T> nullable(x: T): T? = x
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun <T> select(x1: T, x2: T): T = x1
|
||||
|
||||
val test1 =
|
||||
listOf(1, 2, 3).mapNotNullTo(ArrayList()) {
|
||||
if (true) nullable(it) else null
|
||||
}
|
||||
|
||||
val test2: MutableList<Int?> =
|
||||
listOf(1, 2, 3).mapNotNullTo(ArrayList()) {
|
||||
if (true) nullable(it) else null
|
||||
}
|
||||
|
||||
val test3: MutableList<Int> =
|
||||
listOf(1, 2, 3).mapNotNullTo(ArrayList()) {
|
||||
if (true) nullable(it) else null
|
||||
}
|
||||
|
||||
val test4: Collection<Int> =
|
||||
listOf(1, 2, 3).flatMapTo(LinkedHashSet()) {
|
||||
listOf(it)
|
||||
}
|
||||
|
||||
val test5: Collection<Int> =
|
||||
listOf(1, 2, 3).flatMapTo(LinkedHashSet()) { // TODO
|
||||
if (true) listOf(it) else listOf(it)
|
||||
}
|
||||
|
||||
val test6: Collection<Int> =
|
||||
listOf(1, 2, 3).flatMapTo(LinkedHashSet<Int>()) {
|
||||
if (true) listOf(it) else listOf(it)
|
||||
}
|
||||
|
||||
val test7: Collection<Int> =
|
||||
listOf(1, 2, 3).flatMapTo(LinkedHashSet()) {
|
||||
select(listOf(it), listOf(it))
|
||||
}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
import java.util.*
|
||||
|
||||
fun <T> nullable(x: T): T? = x
|
||||
|
||||
Reference in New Issue
Block a user