Add tests outputs for collection execution tests
This commit is contained in:
committed by
Yan Zhulanow
parent
e3d651ec09
commit
aa7f1073e6
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at AllMatchFalse.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AllMatchFalse.kt:5
|
||||
listOf(1, 2)
|
||||
.all({ it % 2 == 0 })
|
||||
all
|
||||
before: 2
|
||||
after: nothing
|
||||
mappings for all
|
||||
direct:
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at AllMatchTrue.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AllMatchTrue.kt:5
|
||||
listOf(1, 2)
|
||||
.all({ it < 10 })
|
||||
all
|
||||
before: 2
|
||||
after: nothing
|
||||
mappings for all
|
||||
direct:
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at Average.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Average.kt:5
|
||||
listOf(1, 2, 3, 4)
|
||||
.average()
|
||||
average
|
||||
before: 4
|
||||
after: nothing
|
||||
mappings for average
|
||||
direct:
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at Distinct.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Distinct.kt:5
|
||||
listOf(1, 2, 3, 4, 3, 2, 1)
|
||||
.distinct()
|
||||
distinct
|
||||
before: 7
|
||||
after: nothing
|
||||
mappings for distinct
|
||||
direct:
|
||||
7 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at DistinctBy.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
DistinctBy.kt:5
|
||||
listOf(1, 2, 3, 4, 5)
|
||||
.distinctBy({ it % 2 })
|
||||
distinctBy
|
||||
before: 5
|
||||
after: nothing
|
||||
mappings for distinctBy
|
||||
direct:
|
||||
5 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at FilterAsIntermediate.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FilterAsIntermediate.kt:5
|
||||
listOf("abc", "bde", "gh")
|
||||
.filter({ it.length < 3 })
|
||||
.count()
|
||||
filter
|
||||
before: 4,6,8
|
||||
after: 8
|
||||
count
|
||||
before: 10
|
||||
after: nothing
|
||||
Exception caught: junit.framework.AssertionFailedError, null
|
||||
Disconnected from the target VM
|
||||
|
||||
WRONG!
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at FilterAsTerminal.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FilterAsTerminal.kt:5
|
||||
listOf("23", "54", "4543")
|
||||
.filter({ it.length < 3 })
|
||||
filter
|
||||
before: 4,6,8
|
||||
after: 4,6
|
||||
mappings for filter
|
||||
direct:
|
||||
4 -> 4
|
||||
6 -> 6
|
||||
8 -> nothing
|
||||
reverse:
|
||||
4 <- 4
|
||||
6 <- 6
|
||||
Disconnected from the target VM
|
||||
|
||||
WRONG!
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,29 @@
|
||||
LineBreakpoint created at FilterPassNothing.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FilterPassNothing.kt:5
|
||||
listOf(Any(), Any(), Any())
|
||||
.filter({ false })
|
||||
.count()
|
||||
filter
|
||||
before: 4,6,8
|
||||
after: nothing
|
||||
count
|
||||
before: nothing
|
||||
after: nothing
|
||||
mappings for filter
|
||||
direct:
|
||||
4 -> nothing
|
||||
6 -> nothing
|
||||
8 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
mappings for count
|
||||
direct:
|
||||
empty
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
WRONG!
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at FilterPrimitive.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FilterPrimitive.kt:5
|
||||
listOf(1, 2, 3)
|
||||
.filter({ it == 2 })
|
||||
.count()
|
||||
filter
|
||||
before: 4,6,8
|
||||
after: 6
|
||||
count
|
||||
before: 10
|
||||
after: nothing
|
||||
Exception caught: junit.framework.AssertionFailedError, null
|
||||
Disconnected from the target VM
|
||||
|
||||
WRONG!
|
||||
Process finished with exit code 0
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at FilterPrimitiveAsTermination.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FilterPrimitiveAsTermination.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
@SinceKotlin public inline fun <S : CharSequence> ???.onEach(action: (Char) -> Unit): ??? defined in kotlin.text
|
||||
@SinceKotlin public inline fun <T, C : Iterable<???>> ByteArray.onEach(action: (???) -> Unit): ByteArray defined in kotlin.collections
|
||||
@SinceKotlin public inline fun <K, V, M : Map<out ???, ???>> ByteArray.onEach(action: (Map.Entry<???, ???>) -> Unit): ByteArray defined in kotlin.collections
|
||||
@SinceKotlin public fun <T> Sequence<???>.onEach(action: (???) -> Unit): Sequence<???> defined in kotlin.sequences, Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
|
||||
@SinceKotlin public inline fun <S : CharSequence> ???.onEach(action: (Char) -> Unit): ??? defined in kotlin.text
|
||||
@SinceKotlin public inline fun <T, C : Iterable<???>> ByteArray.onEach(action: (???) -> Unit): ByteArray defined in kotlin.collections
|
||||
@SinceKotlin public inline fun <K, V, M : Map<out ???, ???>> ByteArray.onEach(action: (Map.Entry<???, ???>) -> Unit): ByteArray defined in kotlin.collections
|
||||
@SinceKotlin public fun <T> Sequence<???>.onEach(action: (???) -> Unit): Sequence<???> defined in kotlin.sequences
|
||||
Disconnected from the target VM
|
||||
|
||||
WRONG!
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at FlatMap.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FlatMap.kt:5
|
||||
listOf(2, 3)
|
||||
.flatMap({ 0..it })
|
||||
flatMap
|
||||
before: 2
|
||||
after: nothing
|
||||
mappings for flatMap
|
||||
direct:
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at GroupBy.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
GroupBy.kt:5
|
||||
listOf(1, 2, 3, 4, 5)
|
||||
.groupBy({ it % 2 })
|
||||
groupBy
|
||||
before: 5
|
||||
after: nothing
|
||||
mappings for groupBy
|
||||
direct:
|
||||
5 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at IndexOf.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
IndexOf.kt:5
|
||||
listOf(1, 2)
|
||||
.indexOf(2)
|
||||
indexOf
|
||||
before: 2
|
||||
after: nothing
|
||||
mappings for indexOf
|
||||
direct:
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at Map.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Map.kt:5
|
||||
listOf(1, 2)
|
||||
.map({ it * it })
|
||||
map
|
||||
before: 2
|
||||
after: nothing
|
||||
mappings for map
|
||||
direct:
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at MapToSameCollection.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MapToSameCollection.kt:6
|
||||
listOf(4, 5, 6)
|
||||
.mapTo(dst, { it * it })
|
||||
mapTo
|
||||
before: 3
|
||||
after: nothing
|
||||
mappings for mapTo
|
||||
direct:
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
[1, 2, 3, 16, 25, 36, 16, 25, 36, 1, 4, 9, 625, 625]
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at ZipWithGreater.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ZipWithGreater.kt:5
|
||||
listOf(1, 2)
|
||||
.zip(listOf(1, 4, 8))
|
||||
zip
|
||||
before: 2
|
||||
after: nothing
|
||||
mappings for zip
|
||||
direct:
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at ZipWithLesser.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ZipWithLesser.kt:5
|
||||
listOf(1, 2, 3)
|
||||
.zip(listOf(1, 4))
|
||||
zip
|
||||
before: 3
|
||||
after: nothing
|
||||
mappings for zip
|
||||
direct:
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at ZipWithSame.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ZipWithSame.kt:5
|
||||
listOf(1, 2, 3)
|
||||
.zip(listOf(1, 4, 8))
|
||||
zip
|
||||
before: 3
|
||||
after: nothing
|
||||
mappings for zip
|
||||
direct:
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user