From aa7f1073e63b949c9671e272f0013b19d75ae6ba Mon Sep 17 00:00:00 2001 From: "Vitaliy.Bibaev" Date: Thu, 23 Nov 2017 20:02:05 +0300 Subject: [PATCH] Add tests outputs for collection execution tests --- .../exec/collection/outs/allMatchFalse.out | 17 +++++++++++ .../exec/collection/outs/allMatchTrue.out | 17 +++++++++++ .../sequence/exec/collection/outs/average.out | 17 +++++++++++ .../exec/collection/outs/distinct.out | 17 +++++++++++ .../exec/collection/outs/distinctBy.out | 17 +++++++++++ .../collection/outs/filterAsIntermediate.out | 18 ++++++++++++ .../exec/collection/outs/filterAsTerminal.out | 21 ++++++++++++++ .../collection/outs/filterPassNothing.out | 29 +++++++++++++++++++ .../exec/collection/outs/filterPrimitive.out | 18 ++++++++++++ .../outs/filterPrimitiveAsTermination.out | 17 +++++++++++ .../sequence/exec/collection/outs/flatMap.out | 17 +++++++++++ .../sequence/exec/collection/outs/groupBy.out | 17 +++++++++++ .../sequence/exec/collection/outs/indexOf.out | 17 +++++++++++ .../sequence/exec/collection/outs/map.out | 17 +++++++++++ .../collection/outs/mapToSameCollection.out | 18 ++++++++++++ .../exec/collection/outs/zipWithGreater.out | 17 +++++++++++ .../exec/collection/outs/zipWithLesser.out | 17 +++++++++++ .../exec/collection/outs/zipWithSame.out | 17 +++++++++++ 18 files changed, 325 insertions(+) create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/allMatchFalse.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/allMatchTrue.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/average.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/distinct.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/distinctBy.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/filterAsIntermediate.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/filterAsTerminal.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/filterPassNothing.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/filterPrimitive.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/filterPrimitiveAsTermination.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/flatMap.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/groupBy.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/indexOf.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/map.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/mapToSameCollection.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/zipWithGreater.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/zipWithLesser.out create mode 100644 idea/testData/debugger/sequence/exec/collection/outs/zipWithSame.out diff --git a/idea/testData/debugger/sequence/exec/collection/outs/allMatchFalse.out b/idea/testData/debugger/sequence/exec/collection/outs/allMatchFalse.out new file mode 100644 index 00000000000..0bc337300d1 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/allMatchFalse.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/allMatchTrue.out b/idea/testData/debugger/sequence/exec/collection/outs/allMatchTrue.out new file mode 100644 index 00000000000..33286943c6c --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/allMatchTrue.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/average.out b/idea/testData/debugger/sequence/exec/collection/outs/average.out new file mode 100644 index 00000000000..83a2c54fb1d --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/average.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/distinct.out b/idea/testData/debugger/sequence/exec/collection/outs/distinct.out new file mode 100644 index 00000000000..d670cabc35e --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/distinct.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/distinctBy.out b/idea/testData/debugger/sequence/exec/collection/outs/distinctBy.out new file mode 100644 index 00000000000..24ba8838f24 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/distinctBy.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/filterAsIntermediate.out b/idea/testData/debugger/sequence/exec/collection/outs/filterAsIntermediate.out new file mode 100644 index 00000000000..71be9e886e0 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/filterAsIntermediate.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/filterAsTerminal.out b/idea/testData/debugger/sequence/exec/collection/outs/filterAsTerminal.out new file mode 100644 index 00000000000..21b35730232 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/filterAsTerminal.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/filterPassNothing.out b/idea/testData/debugger/sequence/exec/collection/outs/filterPassNothing.out new file mode 100644 index 00000000000..6c87b7ab5bc --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/filterPassNothing.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/filterPrimitive.out b/idea/testData/debugger/sequence/exec/collection/outs/filterPrimitive.out new file mode 100644 index 00000000000..b72925083ad --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/filterPrimitive.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/filterPrimitiveAsTermination.out b/idea/testData/debugger/sequence/exec/collection/outs/filterPrimitiveAsTermination.out new file mode 100644 index 00000000000..99068d8823e --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/filterPrimitiveAsTermination.out @@ -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 ???.onEach(action: (Char) -> Unit): ??? defined in kotlin.text +@SinceKotlin public inline fun > ByteArray.onEach(action: (???) -> Unit): ByteArray defined in kotlin.collections +@SinceKotlin public inline fun > ByteArray.onEach(action: (Map.Entry) -> Unit): ByteArray defined in kotlin.collections +@SinceKotlin public fun 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 ???.onEach(action: (Char) -> Unit): ??? defined in kotlin.text +@SinceKotlin public inline fun > ByteArray.onEach(action: (???) -> Unit): ByteArray defined in kotlin.collections +@SinceKotlin public inline fun > ByteArray.onEach(action: (Map.Entry) -> Unit): ByteArray defined in kotlin.collections +@SinceKotlin public fun Sequence.onEach(action: (???) -> Unit): Sequence defined in kotlin.sequences +Disconnected from the target VM + +WRONG! +Process finished with exit code 0 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/flatMap.out b/idea/testData/debugger/sequence/exec/collection/outs/flatMap.out new file mode 100644 index 00000000000..e84c062eee9 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/flatMap.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/groupBy.out b/idea/testData/debugger/sequence/exec/collection/outs/groupBy.out new file mode 100644 index 00000000000..f74adc64ab8 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/groupBy.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/indexOf.out b/idea/testData/debugger/sequence/exec/collection/outs/indexOf.out new file mode 100644 index 00000000000..6ec90b4574f --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/indexOf.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/map.out b/idea/testData/debugger/sequence/exec/collection/outs/map.out new file mode 100644 index 00000000000..5a501181ef2 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/map.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/mapToSameCollection.out b/idea/testData/debugger/sequence/exec/collection/outs/mapToSameCollection.out new file mode 100644 index 00000000000..bcf21177a25 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/mapToSameCollection.out @@ -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] diff --git a/idea/testData/debugger/sequence/exec/collection/outs/zipWithGreater.out b/idea/testData/debugger/sequence/exec/collection/outs/zipWithGreater.out new file mode 100644 index 00000000000..fe71ff1b32b --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/zipWithGreater.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/zipWithLesser.out b/idea/testData/debugger/sequence/exec/collection/outs/zipWithLesser.out new file mode 100644 index 00000000000..78800eb5513 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/zipWithLesser.out @@ -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 diff --git a/idea/testData/debugger/sequence/exec/collection/outs/zipWithSame.out b/idea/testData/debugger/sequence/exec/collection/outs/zipWithSame.out new file mode 100644 index 00000000000..838f6b2a624 --- /dev/null +++ b/idea/testData/debugger/sequence/exec/collection/outs/zipWithSame.out @@ -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