Add tests & test data for all terminal operations
This commit is contained in:
committed by
Yan Zhulanow
parent
bf82cd9b40
commit
914a631322
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at AllFalse.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AllFalse.kt:5
|
||||
sequenceOf(1,2,3)
|
||||
.all({ it % 2 == 1 })
|
||||
all
|
||||
before: 1,2
|
||||
after: nothing
|
||||
mappings for all
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at AllTrue.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AllTrue.kt:5
|
||||
sequenceOf(1,2,3)
|
||||
.all({ it < 5 })
|
||||
all
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for all
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at AnyFalse.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AnyFalse.kt:5
|
||||
sequenceOf(1,2,3)
|
||||
.any({ it > 5 })
|
||||
any
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for any
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at AnyTrue.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AnyTrue.kt:5
|
||||
sequenceOf(1, 2, 3, 4)
|
||||
.any({ it == 3 })
|
||||
any
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for any
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,27 @@
|
||||
LineBreakpoint created at AsIterable.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AsIterable.kt:5
|
||||
sequenceOf(1,2,3)
|
||||
.onEach({ print(1) })
|
||||
.asIterable()
|
||||
onEach
|
||||
before: nothing
|
||||
after: nothing
|
||||
asIterable
|
||||
before: nothing
|
||||
after: nothing
|
||||
mappings for onEach
|
||||
direct:
|
||||
empty
|
||||
reverse:
|
||||
empty
|
||||
mappings for asIterable
|
||||
direct:
|
||||
empty
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at Associate.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Associate.kt:5
|
||||
sequenceOf(1, 2)
|
||||
.associate({ it to it * it })
|
||||
associate
|
||||
before: 1,2
|
||||
after: nothing
|
||||
mappings for associate
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,19 @@
|
||||
LineBreakpoint created at AssociateBy.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
AssociateBy.kt:5
|
||||
sequenceOf(1, 2,3)
|
||||
.associateBy({ it * it })
|
||||
associateBy
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for associateBy
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at Average.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Average.kt:5
|
||||
sequenceOf(1, 2)
|
||||
.average()
|
||||
average
|
||||
before: 1,2
|
||||
after: nothing
|
||||
mappings for average
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,17 @@
|
||||
LineBreakpoint created at Count.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Count.kt:5
|
||||
sequenceOf(1)
|
||||
.count()
|
||||
count
|
||||
before: 1
|
||||
after: nothing
|
||||
mappings for count
|
||||
direct:
|
||||
1 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -2,9 +2,42 @@ LineBreakpoint created at DistinctBy.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
DistinctBy.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Unresolved reference: andThen, Unresolved reference: andThen
|
||||
listOf(3, 4, 234, 34, 54, 23, 4, 23, 543, 5, 46).asSequence()
|
||||
.distinctBy({ it % 10 })
|
||||
.toList()
|
||||
distinctBy
|
||||
before: 1,3,5,6,7,8,9,10,11,12,14
|
||||
after: 2,4,13,15
|
||||
toList
|
||||
before: 2,4,13,15
|
||||
after: nothing
|
||||
mappings for distinctBy
|
||||
direct:
|
||||
1 -> nothing
|
||||
3 -> nothing
|
||||
5 -> nothing
|
||||
6 -> nothing
|
||||
7 -> nothing
|
||||
8 -> nothing
|
||||
9 -> nothing
|
||||
10 -> nothing
|
||||
11 -> nothing
|
||||
12 -> nothing
|
||||
14 -> nothing
|
||||
reverse:
|
||||
nothing <- 2
|
||||
nothing <- 4
|
||||
nothing <- 13
|
||||
nothing <- 15
|
||||
mappings for toList
|
||||
direct:
|
||||
2 -> nothing
|
||||
4 -> nothing
|
||||
13 -> nothing
|
||||
15 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
WRONG! Should be fixed in the platform
|
||||
|
||||
Process finished with exit code 0
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
LineBreakpoint created at ElementAt.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ElementAt.kt:5
|
||||
sequenceOf(1, 2, 3)
|
||||
.elementAt(1)
|
||||
elementAt
|
||||
before: 1,2
|
||||
after: nothing
|
||||
mappings for elementAt
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,19 @@
|
||||
LineBreakpoint created at ElementAtOrElseAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ElementAtOrElseAbsent.kt:5
|
||||
sequenceOf(1, 2, 3)
|
||||
.elementAtOrElse(3, { _ -> 3 })
|
||||
elementAtOrElse
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for elementAtOrElse
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at ElementAtOrElsePresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ElementAtOrElsePresent.kt:5
|
||||
sequenceOf(1, 2, 3)
|
||||
.elementAtOrElse(2, { _ -> 3 })
|
||||
elementAtOrElse
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for elementAtOrElse
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at ElementAtOrNull.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ElementAtOrNull.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at FindAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FindAbsent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at FindLastAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FindLastAbsent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at FindLastPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FindLastPresent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at FindPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FindPresent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,19 @@
|
||||
LineBreakpoint created at First.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
First.kt:5
|
||||
sequenceOf(1, 2, 3, 2)
|
||||
.first({ it == 2 })
|
||||
first
|
||||
before: 1,2
|
||||
after: nothing
|
||||
mappings for first
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at FirstOrNullAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FirstOrNullAbsent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at FirstOrNullPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
FirstOrNullPresent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at GroupingBy.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
GroupingBy.kt:5
|
||||
sequenceOf(1, 2, 3, 4, 5)
|
||||
.groupingBy({ it % 2 })
|
||||
groupingBy
|
||||
before: nothing
|
||||
after: nothing
|
||||
mappings for groupingBy
|
||||
direct:
|
||||
empty
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at IndexOfAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
IndexOfAbsent.kt:5
|
||||
sequenceOf(1, 2, 3, -1)
|
||||
.indexOf(5)
|
||||
indexOf
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for indexOf
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,19 @@
|
||||
LineBreakpoint created at IndexOfFirstAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
IndexOfFirstAbsent.kt:5
|
||||
sequenceOf(1, 2, 3)
|
||||
.indexOfFirst({ it == 5 })
|
||||
indexOfFirst
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for indexOfFirst
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at IndexOfFirstPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
IndexOfFirstPresent.kt:5
|
||||
sequenceOf(1, 2, 3, 2, 1)
|
||||
.indexOfFirst({ it == 1 })
|
||||
indexOfFirst
|
||||
before: 1
|
||||
after: nothing
|
||||
mappings for indexOfFirst
|
||||
direct:
|
||||
1 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at IndexOfLastAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
IndexOfLastAbsent.kt:5
|
||||
sequenceOf(1, 2, 1, 2)
|
||||
.indexOfLast({ it == 3 })
|
||||
indexOfLast
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for indexOfLast
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at IndexOfLastPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
IndexOfLastPresent.kt:5
|
||||
sequenceOf(1, 2, 1, 2)
|
||||
.indexOfLast({ it == 1 })
|
||||
indexOfLast
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for indexOfLast
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at IndexOfPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
IndexOfPresent.kt:5
|
||||
sequenceOf(1, 2, 3, 2, 1)
|
||||
.indexOf(1)
|
||||
indexOf
|
||||
before: 1
|
||||
after: nothing
|
||||
mappings for indexOf
|
||||
direct:
|
||||
1 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at Last.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Last.kt:5
|
||||
sequenceOf(1, 2, 3, 2)
|
||||
.last({ it == 2 })
|
||||
last
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for last
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at LastIndexOf.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
LastIndexOf.kt:5
|
||||
sequenceOf(1, 2, 1, 3)
|
||||
.lastIndexOf(1)
|
||||
lastIndexOf
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for lastIndexOf
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at LastOrNullAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
LastOrNullAbsent.kt:5
|
||||
sequenceOf(1, 2, 3, 4)
|
||||
.lastIndexOf(0)
|
||||
lastIndexOf
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for lastIndexOf
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,24 @@
|
||||
LineBreakpoint created at LastOrNullPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
LastOrNullPresent.kt:5
|
||||
sequenceOf(1, 2, 3, 1, 2, 1, 3)
|
||||
.lastIndexOf(1)
|
||||
lastIndexOf
|
||||
before: 1,2,3,4,5,6,7
|
||||
after: nothing
|
||||
mappings for lastIndexOf
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
5 -> nothing
|
||||
6 -> nothing
|
||||
7 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at MaxAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MaxAbsent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,19 @@
|
||||
LineBreakpoint created at MaxBy.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MaxBy.kt:5
|
||||
sequenceOf("abc", "bc")
|
||||
.maxBy({ it.length })
|
||||
maxBy
|
||||
before: 1,2
|
||||
after: nothing
|
||||
mappings for maxBy
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at MaxPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MaxPresent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at MaxWith.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MaxWith.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at MinAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MinAbsent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type mismatch: inferred type is Double? but Double was expected, Type mismatch: inferred type is Double? but Double was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at MinBy.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MinBy.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at MinPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MinPresent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at MinWith.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
MinWith.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,20 @@
|
||||
LineBreakpoint created at NoneAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
NoneAbsent.kt:5
|
||||
sequenceOf(1, 2, 3)
|
||||
.none({ it == 3 })
|
||||
none
|
||||
before: 1,2,3
|
||||
after: nothing
|
||||
mappings for none
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,19 @@
|
||||
LineBreakpoint created at NonePresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
NonePresent.kt:5
|
||||
sequenceOf(1, 2)
|
||||
.none({ it == 3 })
|
||||
none
|
||||
before: 1,2
|
||||
after: nothing
|
||||
mappings for none
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,22 @@
|
||||
LineBreakpoint created at Partition.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Partition.kt:5
|
||||
sequenceOf(2, 3, 4, 7, 5)
|
||||
.partition({ it % 2 == 0 })
|
||||
partition
|
||||
before: 1,2,3,4,5
|
||||
after: nothing
|
||||
mappings for partition
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
5 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,18 @@
|
||||
LineBreakpoint created at Single.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
Single.kt:5
|
||||
sequenceOf(1)
|
||||
.single()
|
||||
single
|
||||
before: 1
|
||||
after: nothing
|
||||
mappings for single
|
||||
direct:
|
||||
1 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at SingleOrNullAbsent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
SingleOrNullAbsent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at SingleOrNullPresent.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
SingleOrNullPresent.kt:5
|
||||
Exception caught: junit.framework.AssertionFailedError: Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected, Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,23 @@
|
||||
LineBreakpoint created at ToCollection.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ToCollection.kt:5
|
||||
sequenceOf(1, 2, 3, 4, 2, 1)
|
||||
.toCollection(mutableSetOf())
|
||||
toCollection
|
||||
before: 1,2,3,4,5,6
|
||||
after: nothing
|
||||
mappings for toCollection
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
5 -> nothing
|
||||
6 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,22 @@
|
||||
LineBreakpoint created at ToHashSet.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ToHashSet.kt:5
|
||||
sequenceOf(1, 1, 2, 3, 4)
|
||||
.toHashSet()
|
||||
toHashSet
|
||||
before: 1,2,3,4,5
|
||||
after: nothing
|
||||
mappings for toHashSet
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
5 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at ToList.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ToList.kt:5
|
||||
sequenceOf(1, 2, 2, 1)
|
||||
.toList()
|
||||
toList
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for toList
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at ToMutableList.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ToMutableList.kt:5
|
||||
sequenceOf(1, 2, 2, 1)
|
||||
.toMutableList()
|
||||
toMutableList
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for toMutableList
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at ToMutableSet.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ToMutableSet.kt:5
|
||||
sequenceOf(1, 2, 2, 1)
|
||||
.toMutableSet()
|
||||
toMutableSet
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for toMutableSet
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at ToSet.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ToSet.kt:5
|
||||
sequenceOf(1, 2, 2, 1)
|
||||
.toSet()
|
||||
toSet
|
||||
before: 1,2,3,4
|
||||
after: nothing
|
||||
mappings for toSet
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,23 @@
|
||||
LineBreakpoint created at ToSortedSet.kt:5
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
ToSortedSet.kt:5
|
||||
sequenceOf(1, 2, 2, 1, 3, 2)
|
||||
.toSortedSet()
|
||||
toSortedSet
|
||||
before: 1,2,3,4,5,6
|
||||
after: nothing
|
||||
mappings for toSortedSet
|
||||
direct:
|
||||
1 -> nothing
|
||||
2 -> nothing
|
||||
3 -> nothing
|
||||
4 -> nothing
|
||||
5 -> nothing
|
||||
6 -> nothing
|
||||
reverse:
|
||||
empty
|
||||
WRONG!
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1,2,3).all { it % 2 == 1 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1,2,3).all { it < 5 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1,2,3).any { it > 5 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 4).any { it == 3 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1,2,3).onEach { print(1) }.asIterable()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2).associate { it to it * it }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2,3).associateBy { it * it }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2).average()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1).count()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3).elementAt(1)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3).elementAtOrElse(3, { _ -> 3 })
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3).elementAtOrElse(2, { _ -> 3 })
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 3).elementAtOrNull(1)
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 4).find { it % 5 == 0 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3).findLast { it % 5 == 0 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2, 1).findLast { it == 2 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2, 1).find { it == 2 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2).first { it == 2 }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3).firstOrNull { it == 0 }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 3, 6, 3).firstOrNull { it == 3 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 4, 5).groupingBy { it % 2 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, -1).indexOf(5)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3).indexOfFirst { it == 5 }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2, 1).indexOfFirst { it == 1 }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 1, 2).indexOfLast { it == 3 }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 1, 2).indexOfLast { it == 1 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2, 1).indexOf(1)
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2).last { it == 2 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 1, 3).lastIndexOf(1)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 4).lastIndexOf(0)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 1, 2, 1, 3).lastIndexOf(1)
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
emptySequence<Int>().max()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf("abc", "bc").maxBy { it.length }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 1, 2).max()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2, 3).maxWith(compareBy { it })
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
emptySequence<Double>().min()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2, 3, 1).minBy { 5 - it }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 0).min()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 2, 3).minWith(compareByDescending { it })
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3).none { it == 3 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2).none { it == 3 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(2, 3, 4, 7, 5).partition { it % 2 == 0 }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1).single()
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 3).singleOrNull()
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1).singleOrNull()
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 2, 3, 4, 2, 1).toCollection(mutableSetOf())
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package terminal
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Breakpoint!
|
||||
sequenceOf(1, 1, 2, 3, 4).toHashSet()
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user