aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
committerAllan Wang <me@allanwang.ca>2018-01-01 23:22:51 -0500
commit71f5dc2f7ce5b8183421586e6a77be65040a4dff (patch)
treefedd18e271463ce2430637a9913e8470e84181ce /core/src/test/kotlin/ca
parentf94d6f9694973c2a323e565794d948002593df0a (diff)
downloadkau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.gz
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.tar.bz2
kau-71f5dc2f7ce5b8183421586e6a77be65040a4dff.zip
Format everything and use reified generics
Diffstat (limited to 'core/src/test/kotlin/ca')
-rw-r--r--core/src/test/kotlin/ca/allanwang/kau/kotlin/ZipTest.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/test/kotlin/ca/allanwang/kau/kotlin/ZipTest.kt b/core/src/test/kotlin/ca/allanwang/kau/kotlin/ZipTest.kt
index 4a04142..7eeffaf 100644
--- a/core/src/test/kotlin/ca/allanwang/kau/kotlin/ZipTest.kt
+++ b/core/src/test/kotlin/ca/allanwang/kau/kotlin/ZipTest.kt
@@ -24,8 +24,7 @@ class ZipTest {
val latch = CountDownLatch(1)
val rnd = Random()
(0..10).map {
- {
- callback: ZipCallback<Int> ->
+ { callback: ZipCallback<Int> ->
doAsync {
val sleepTime = rnd.nextInt(100) + 200L
p("Task $it will sleep for ${sleepTime}ms")
@@ -35,8 +34,7 @@ class ZipTest {
callback(it)
}; Unit
}
- }.zip(-1) {
- results ->
+ }.zip(-1) { results ->
val finish = System.currentTimeMillis()
println("Results ${results.contentToString()} received in ${finish - start}ms at $finish")
assertTrue((0..10).toList().toTypedArray().contentEquals(results), "Basic zip results do not match")