Add tests on different types of chain source

This commit is contained in:
Vitaliy.Bibaev
2017-11-24 14:59:50 +03:00
committed by Yan Zhulanow
parent 0d2c5c4d65
commit 14ef19418b
9 changed files with 104 additions and 0 deletions
@@ -0,0 +1,17 @@
LineBreakpoint created at ArrayAsSource.kt:5
Run Java
Connected to the target VM
ArrayAsSource.kt:5
arrayOf("23", "34").asIterable()
.count()
count
before: 2
after: nothing
mappings for count
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at CollectionAsSource.kt:6
Run Java
Connected to the target VM
CollectionAsSource.kt:6
collection
.count({ it == 3 })
count
before: 4
after: nothing
mappings for count
direct:
4 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at PrimitiveArrayAsSource.kt:5
Run Java
Connected to the target VM
PrimitiveArrayAsSource.kt:5
booleanArrayOf(true, false).asIterable()
.count()
count
before: 2
after: nothing
mappings for count
direct:
2 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,17 @@
LineBreakpoint created at StringAsSource.kt:5
Run Java
Connected to the target VM
StringAsSource.kt:5
"Hello World!"
.count({ it.isUpperCase() })
count
before: 12
after: nothing
mappings for count
direct:
12 -> nothing
reverse:
empty
Disconnected from the target VM
Process finished with exit code 0
@@ -0,0 +1,6 @@
package source
fun main(args: Array<String>) {
// Breakpoint!
arrayOf("23", "34").count()
}
@@ -0,0 +1,7 @@
package source
fun main(args: Array<String>) {
val collection: Collection<Any> = listOf(1, 2, 3, 5)
// Breakpoint!
collection.count { it == 3 }
}
@@ -0,0 +1,6 @@
package source
fun main(args: Array<String>) {
// Breakpoint!
booleanArrayOf(true, false).count()
}
@@ -0,0 +1,6 @@
package source
fun main(args: Array<String>) {
// Breakpoint!
"Hello World!".count { it.isUpperCase() }
}