aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
diff options
context:
space:
mode:
authorAllan Wang <allanwang@google.com>2019-08-15 16:04:14 -0700
committerAllan Wang <allanwang@google.com>2019-08-15 16:04:14 -0700
commit5aefeee08f68777dd07a16bd42a7d2392db6bbc9 (patch)
treea357e6cd419123d69ca5d2977c8ce839c56f3d87 /core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
parent85e9e1f253bb14512ae404989c45cbc199eb1eba (diff)
downloadkau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.gz
kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.bz2
kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.zip
Apply spotless
Diffstat (limited to 'core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt')
-rw-r--r--core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt b/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
index c406901..d43901f 100644
--- a/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
+++ b/core/src/test/kotlin/ca/allanwang/kau/kotlin/DebounceTest.kt
@@ -50,16 +50,16 @@ class DebounceTest {
fun multipleDebounces() {
var i = 0
val debounce = debounce<Int>(20) { i += it }
- debounce(1) //ignore -> i = 0
+ debounce(1) // ignore -> i = 0
Thread.sleep(10)
assertEquals(0, i)
- debounce(2) //accept -> i = 2
+ debounce(2) // accept -> i = 2
Thread.sleep(30)
assertEquals(2, i)
- debounce(4) //ignore -> i = 2
+ debounce(4) // ignore -> i = 2
Thread.sleep(10)
assertEquals(2, i)
- debounce(8) //accept -> i = 10
+ debounce(8) // accept -> i = 10
Thread.sleep(30)
assertEquals(10, i)
}