Add tests outputs for mapping operation tests
This commit is contained in:
committed by
Yan Zhulanow
parent
da5cbeb92b
commit
a4e72067a9
@@ -0,0 +1,29 @@
|
||||
LineBreakpoint created at Map.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Map.kt:6
|
||||
doubleArrayOf(1.0, 2.0).asSequence()
|
||||
.map({ it * it })
|
||||
.contains(3.0)
|
||||
map
|
||||
before: 1,3
|
||||
after: 2,4
|
||||
contains
|
||||
before: 2,4
|
||||
after: nothing
|
||||
mappings for map
|
||||
direct:
|
||||
1 -> 2
|
||||
3 -> 4
|
||||
reverse:
|
||||
1 <- 2
|
||||
3 <- 4
|
||||
mappings for contains
|
||||
direct:
|
||||
2 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,35 @@
|
||||
LineBreakpoint created at MapIndexed.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MapIndexed.kt:5
|
||||
intArrayOf(1, 2, 3, 4).asSequence()
|
||||
.mapIndexed({ ix, _ -> ix })
|
||||
.count()
|
||||
mapIndexed
|
||||
before: 1,3,5,7
|
||||
after: 2,4,6,8
|
||||
count
|
||||
before: 2,4,6,8
|
||||
after: nothing
|
||||
mappings for mapIndexed
|
||||
direct:
|
||||
1 -> 2
|
||||
3 -> 4
|
||||
5 -> 6
|
||||
7 -> 8
|
||||
reverse:
|
||||
1 <- 2
|
||||
3 <- 4
|
||||
5 <- 6
|
||||
7 <- 8
|
||||
mappings for count
|
||||
direct:
|
||||
2 -> nothing
|
||||
4 -> nothing
|
||||
6 -> nothing
|
||||
8 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,33 @@
|
||||
LineBreakpoint created at MapNotNull.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MapNotNull.kt:5
|
||||
listOf(1, 2, null, 3).asSequence()
|
||||
.mapNotNull({ if (it != null && it % 2 == 1) it else null })
|
||||
.toList()
|
||||
mapNotNull
|
||||
before: 1,3,4,5
|
||||
after: 2,6
|
||||
toList
|
||||
before: 2,6
|
||||
after: nothing
|
||||
mappings for mapNotNull
|
||||
direct:
|
||||
1 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
5 -> nothing
|
||||
reverse:
|
||||
nothing <- 2
|
||||
nothing <- 6
|
||||
mappings for toList
|
||||
direct:
|
||||
2 -> nothing
|
||||
6 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
|
||||
WRONG! Support will be implemented later
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,32 @@
|
||||
LineBreakpoint created at WithIndex.kt:6
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
WithIndex.kt:6
|
||||
intArrayOf(1, 2, 3).asSequence()
|
||||
.withIndex()
|
||||
.forEach({})
|
||||
withIndex
|
||||
before: 1,3,5
|
||||
after: 2,4,6
|
||||
forEach
|
||||
before: 2,4,6
|
||||
after: nothing
|
||||
mappings for withIndex
|
||||
direct:
|
||||
1 -> 2
|
||||
3 -> 4
|
||||
5 -> 6
|
||||
reverse:
|
||||
1 <- 2
|
||||
3 <- 4
|
||||
5 <- 6
|
||||
mappings for forEach
|
||||
direct:
|
||||
2 -> nothing
|
||||
4 -> nothing
|
||||
6 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
Reference in New Issue
Block a user