Refactor debugger tests
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
This commit is contained in:
Vendored
+3
-1
@@ -3,4 +3,6 @@ package streams.sequence.sort
|
||||
fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
arrayOf(Person("Bob", 42), Person("Alice", 27)).asSequence().sortedByDescending { it.age }.count()
|
||||
}
|
||||
}
|
||||
|
||||
data class Person(val name: String, val age: Int)
|
||||
+3
-1
@@ -4,4 +4,6 @@ fun main(args: Array<String>) {
|
||||
//Breakpoint!
|
||||
arrayOf(Person("Bob", 42), Person("Alice", 27)).asSequence()
|
||||
.sortedWith(compareBy { it.name }).count()
|
||||
}
|
||||
}
|
||||
|
||||
data class Person(val name: String, val age: Int)
|
||||
Reference in New Issue
Block a user