diff --git a/idea/testData/debugger/sequence/exec/sequence/outs/map.out b/idea/testData/debugger/sequence/exec/sequence/outs/map.out new file mode 100644 index 00000000000..6d7cda23753 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/sequence/outs/map.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/sequence/outs/mapIndexed.out b/idea/testData/debugger/sequence/exec/sequence/outs/mapIndexed.out new file mode 100644 index 00000000000..cf27cd2eae0 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/sequence/outs/mapIndexed.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/sequence/outs/mapNotNull.out b/idea/testData/debugger/sequence/exec/sequence/outs/mapNotNull.out new file mode 100644 index 00000000000..992121ab9cb --- /dev/null +++ b/idea/testData/debugger/sequence/exec/sequence/outs/mapNotNull.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/sequence/outs/withIndex.out b/idea/testData/debugger/sequence/exec/sequence/outs/withIndex.out new file mode 100644 index 00000000000..12eb62f2064 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/sequence/outs/withIndex.out @@ -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